This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Description
Hi,
Can't set values of db name and collection name when creating a pulse module config.
- There is no dbname property for setting the database name.
- There is a collection property but it's not changing the default "job" collection.
export const pulseOptions: PulseModuleAsyncConfig<PulseModuleConfig> = {
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => {
const config: PulseModuleConfig = {
db: {
address: configService.getOrThrow<string>('JOB_DB_CONNECTION'),
// dbname: mydbname, // this option is missing.
collection: 'mycollection', // this option is not working.
options: {
appName: 'job-engine',
retryWrites: true,
writeConcern: {
w: 'majority',
},
},
},
};
return config;
},
inject: [ConfigService],
};