CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-nestjs--mongoose

NestJS module that provides seamless integration between NestJS and Mongoose ODM for MongoDB database operations

80

1.02x
Quality

Pending

Does it follow best practices?

Impact

80%

1.02x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

Evaluation results

75%

10%

Polymorphic Media Catalog

Register discriminator schemas for polymorphic models

Criteria
Without context
With context

Base schema setup

20%

60%

Article discriminator

100%

100%

Video discriminator

100%

100%

Shared model usage

100%

100%

DI wiring

0%

0%

83%

-17%

Tenant-aware Catalog Models

Register schemas as injectable models with forFeature/forFeatureAsync

Criteria
Without context
With context

Default forFeature

100%

100%

Analytics connection

100%

75%

Async model factory

100%

40%

Model injection

100%

100%

Exports for reuse

100%

100%

100%

Mongo Connection Module

Configure MongoDB connections via MongooseModule.forRoot/forRootAsync

Criteria
Without context
With context

forRoot setup

100%

100%

Async factory

100%

100%

Connection names

100%

100%

Retry handling

100%

100%

Exports for DI

100%

100%

85%

-5%

Order Analytics Injection

Inject models and connections using InjectModel/InjectConnection token helpers

Criteria
Without context
With context

Model injection

100%

100%

Connection token

100%

100%

Named audit model

100%

100%

Shared session use

100%

100%

No manual setup

33%

0%

98%

18%

Product Catalog Schema Builder

Generate Mongoose schemas/definitions via SchemaFactory and DefinitionsFactory

Criteria
Without context
With context

SchemaFactory

100%

100%

Field decorators

100%

100%

Nested typing

100%

100%

Virtual setup

100%

90%

DefinitionsFactory

0%

100%

90%

-3%

Async Mongo Connection Configuration

Build connection options asynchronously with useFactory/useClass/useExisting patterns

Criteria
Without context
With context

useFactory setup

100%

100%

useClass provider

72%

80%

useExisting reuse

100%

100%

Option passthrough

100%

66%

Connection naming

100%

100%

92%

-1%

Blueprint Schema Module

Handle complex schema inference (raw literal fields, nested classes/arrays/maps, function-wrapped refs, ambiguous-type errors)

Criteria
Without context
With context

Decorated models

100%

100%

Map typing

100%

100%

Raw literal layout

75%

85%

Lazy references

90%

75%

Ambiguous type error

100%

100%

15%

-5%

ObjectId Request Handling

Validate or parse MongoDB ObjectIds with built-in pipes

Criteria
Without context
With context

Param validation

0%

0%

Parsing pipe

0%

0%

Service receives ObjectIds

100%

100%

Optional query pipe

0%

0%

Pipe-driven errors

100%

50%

75%

10%

Inherited Profile Virtuals

Attach virtual fields with options and getter/setter hooks that propagate through class inheritance

Criteria
Without context
With context

Schema setup

100%

100%

Getter/setter virtual

40%

60%

Virtual options

100%

100%

Inherited virtuals

0%

25%

Model wiring

100%

100%

87%

5%

Async Catalog Models

Create models asynchronously through AsyncModelFactory entries

Criteria
Without context
With context

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%

Evaluated
Agent
Claude Code
Model
Claude Sonnet 4.6

Table of Contents