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
Build base and derived profile schemas that rely on virtual fields defined once on the base class. Virtuals must include getter and setter hooks and preserve configuration through inheritance.
fullName virtual that concatenates first and last names declared on the base class; updating either name updates fullName immediately. @testfullName string (e.g., "Ava Cole") to a derived profile document splits it into first and last names stored on the underlying fields. @testjustOne) and populating it returns a single mentor document tied to mentorId. @testfullName virtual and the mentor virtual without redefining them, including their getter/setter behaviors and options. @test@generates
export class BaseProfile {
firstName: string;
lastName: string;
mentorId?: string;
birthYear?: number;
}
export class StaffProfile extends BaseProfile {
role: string;
startYear: number;
}
export class LeadProfile extends StaffProfile {
teamName: string;
}
export function registerProfiles(connection: unknown): {
baseModel: unknown;
staffModel: unknown;
leadModel: unknown;
};Provides schema decorators and utilities for defining and inheriting virtual fields with getter/setter hooks.
@satisfied-by
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10