We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 628be6e commit 8168379Copy full SHA for 8168379
content/techniques/mongo.md
@@ -262,11 +262,6 @@ export class CatsService {
262
constructor(@InjectModel(Cat.name, 'cats') private catModel: Model<CatDocument>) {}
263
}
264
@@switch
265
-import { Model } from 'mongoose';
266
-import { Injectable, Dependencies } from '@nestjs/common';
267
-import { getModelToken } from '@nestjs/mongoose';
268
-import { Cat } from './schemas/cat.schema';
269
-
270
@Injectable()
271
@Dependencies(getModelToken(Cat.name, 'cats'))
272
export class CatsService {
0 commit comments