NestJS module that provides seamless integration between NestJS and Mongoose ODM for MongoDB database operations
80
Pending
Does it follow best practices?
Impact
80%
1.02xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
Register discriminator schemas for polymorphic models
Base schema setup
20%
60%
Article discriminator
100%
100%
Video discriminator
100%
100%
Shared model usage
100%
100%
DI wiring
0%
0%
Register schemas as injectable models with forFeature/forFeatureAsync
Default forFeature
100%
100%
Analytics connection
100%
75%
Async model factory
100%
40%
Model injection
100%
100%
Exports for reuse
100%
100%
Configure MongoDB connections via MongooseModule.forRoot/forRootAsync
forRoot setup
100%
100%
Async factory
100%
100%
Connection names
100%
100%
Retry handling
100%
100%
Exports for DI
100%
100%
Inject models and connections using InjectModel/InjectConnection token helpers
Model injection
100%
100%
Connection token
100%
100%
Named audit model
100%
100%
Shared session use
100%
100%
No manual setup
33%
0%
Generate Mongoose schemas/definitions via SchemaFactory and DefinitionsFactory
SchemaFactory
100%
100%
Field decorators
100%
100%
Nested typing
100%
100%
Virtual setup
100%
90%
DefinitionsFactory
0%
100%
Build connection options asynchronously with useFactory/useClass/useExisting patterns
useFactory setup
100%
100%
useClass provider
72%
80%
useExisting reuse
100%
100%
Option passthrough
100%
66%
Connection naming
100%
100%
Handle complex schema inference (raw literal fields, nested classes/arrays/maps, function-wrapped refs, ambiguous-type errors)
Decorated models
100%
100%
Map typing
100%
100%
Raw literal layout
75%
85%
Lazy references
90%
75%
Ambiguous type error
100%
100%
Validate or parse MongoDB ObjectIds with built-in pipes
Param validation
0%
0%
Parsing pipe
0%
0%
Service receives ObjectIds
100%
100%
Optional query pipe
0%
0%
Pipe-driven errors
100%
50%
Attach virtual fields with options and getter/setter hooks that propagate through class inheritance
Schema setup
100%
100%
Getter/setter virtual
40%
60%
Virtual options
100%
100%
Inherited virtuals
0%
25%
Model wiring
100%
100%
Create models asynchronously through AsyncModelFactory entries
Async registration
100%
100%
Config to schema
80%
80%
TTL index
100%
33%
Secrets policy
75%
100%
Discriminator wiring
60%
100%
Model injection
60%
100%