How to use the nestjs-typegoose.InjectModel function in nestjs-typegoose

To help you get started, we’ve selected a few nestjs-typegoose examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github joe307bad / points / API.Points / src / seed / seed.service.ts View on Github external
constructor(
        @InjectTypegoose(User) private readonly userModel: ModelType,
        @InjectModel('Achievement') private readonly achievementModel: Model,
        @InjectModel('Category') private readonly categoryModel: Model,
    ) { }
github topfullstack / topfullstack / server / apps / admin / src / episodes / episodes.controller.ts View on Github external
constructor(
    @InjectModel(Episode) private readonly model: ReturnModelType,
    @InjectModel(Course) private readonly courseModel: ReturnModelType
  ) { }
github topfullstack / topfullstack / server / apps / admin / src / episodes / episodes.controller.ts View on Github external
constructor(
    @InjectModel(Episode) private readonly model: ReturnModelType,
    @InjectModel(Course) private readonly courseModel: ReturnModelType
  ) { }
github joe307bad / points / API.Points / src / upload / upload.service.ts View on Github external
constructor(
        @InjectTypegoose(User) private readonly userModel: ModelType,
        @InjectModel('Upload') private readonly uploadModel: Model) { }
github topfullstack / topfullstack / server / apps / admin / src / courses / courses.controller.ts View on Github external
constructor(
    @InjectModel(Course) private readonly model: ReturnModelType
  ) { }

nestjs-typegoose

A nestjs module wrapper for typegoose

MIT
Latest version published 4 years ago

Package Health Score

53 / 100
Full package analysis