Static
forStatic
forExample:
Module({
imports: [
FireormModule.forRoot({
firestoreSettings: {
projectId: '<project_id>',
credential: credential.applicationDefault(),
},
fireormSettings: { validateModels: true },
),
UsersModule,
],
})
export class AppModule {}
Optional
settings: FireormSettingsStatic
forExample:
Module({
imports: [
FireormModule.forRootAsync({
inject: [ConfigService],
useFactory: (config: ConfigService) => ({
firestoreSettings: {
projectId: config.projectId,
credential: credential.applicationDefault(),
},
fireormSettings: { validateModels: true },
}),
),
UsersModule,
],
})
export class AppModule {}
Generated using TypeDoc
Example: