-
Notifications
You must be signed in to change notification settings - Fork 417
/
Copy pathapp.module.ts
29 lines (28 loc) · 912 Bytes
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { Module } from '@nestjs/common';
import {
CoreModule,
ServiceRegistryModule,
} from '@ultimatebackend/core/modules';
import { MongoModule } from '@juicycleff/repo-orm/database';
import { MongoMultiTenantConfigService } from '@ultimatebackend/core/mutiltenancy';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ProjectsModule } from './projects/projects.module';
@Module({
imports: [
ServiceRegistryModule,
CoreModule,
/**
* NOTICE: Scoped Request is not yet supported by CQRS hence commands
* and query will fail. Working to fix it in NestJS
* Using registerAsync will disable dependency injection in CQRS.
*/
MongoModule.registerAsync({
useClass: MongoMultiTenantConfigService,
}),
ProjectsModule,
],
controllers: [AppController],
providers: [AppService],
})
export class AppModule {}