Class: AppCommonModule
Class that contains methods to import/configure GraphQL and MongoDB modules.
Table of contents
Constructors
Methods
Constructors
constructor
• new AppCommonModule(): AppCommonModule
Returns
Methods
forRoot
▸ forRoot(uri
, logger?
): DynamicModule
Import/configure GraphQL and MongoDB modules.
Parameters
Name | Type | Description |
---|---|---|
uri | string | The MongoDB connection URI. |
logger? | Logger | The logger object to use for logging at DB level. |
Returns
DynamicModule
The configured DynamicModule.
Static
Defined in
src/modules/appCommon.module.ts:54
forRootAsync
▸ forRootAsync(options
): DynamicModule
Import/configure GraphQL and MongoDB modules.
Parameters
Name | Type | Description |
---|---|---|
options | AppAsyncOptions | The configuration options. |
Returns
DynamicModule
The configured DynamicModule.
Static