Skip to content
Interfaceplugin-mongoosev0.5.4

MongooseServiceRegistrationOptions

Extra configuration supplied to @RegisterMongooseService.

interface MongooseServiceRegistrationOptions

Properties

modelName

Optional override for the mongoose model name. Mongoose derives the collection from it by pluralizing, so user reads and writes the users collection.

Set this when the model name differs from the service key.

readonly modelName?: string

Default:the provided key