Class FireormModule

Constructors

Methods

  • Example:

    Module({
    imports: [FireormModule.forFeature([User])],
    providers: [UsersService],
    exports: [UsersService],
    })
    export class UsersModule {}

    Parameters

    • entities: Type<any>[]

    Returns DynamicModule

  • Example:

    Module({
    imports: [
    FireormModule.forRoot({
    firestoreSettings: {
    projectId: '<project_id>',
    credential: credential.applicationDefault(),
    },
    fireormSettings: { validateModels: true },
    ),
    UsersModule,
    ],
    })
    export class AppModule {}

    Parameters

    Returns DynamicModule

  • Example:

    Module({
    imports: [
    FireormModule.forRootAsync({
    inject: [ConfigService],
    useFactory: (config: ConfigService) => ({
    firestoreSettings: {
    projectId: config.projectId,
    credential: credential.applicationDefault(),
    },
    fireormSettings: { validateModels: true },
    }),
    ),
    UsersModule,
    ],
    })
    export class AppModule {}

    Parameters

    Returns DynamicModule

Generated using TypeDoc