Skip to main content

Class: AppCommonModule

Class that contains methods to import/configure GraphQL and MongoDB modules.

Table of contents

Constructors

Methods

Constructors

constructor

new AppCommonModule(): AppCommonModule

Returns

AppCommonModule

Methods

forRoot

forRoot(uri, logger?): DynamicModule

Import/configure GraphQL and MongoDB modules.

Parameters

NameTypeDescription
uristringThe MongoDB connection URI.
logger?LoggerThe 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

NameTypeDescription
optionsAppAsyncOptionsThe configuration options.

Returns

DynamicModule

The configured DynamicModule.

Static

Defined in

src/modules/appCommon.module.ts:76