【发布时间】:2020-06-16 15:01:27
【问题描述】:
就 NestJS 而言,使用MongooseModule.forFeature([{ name: 'Cat', schema: CatSchema }], 'cats')
我们如何定义强类型模型?!
就像我们在常规打字稿上所做的一样 (Mongoose the Typescript way...?)
【问题讨论】:
标签: typescript mongoose nestjs
就 NestJS 而言,使用MongooseModule.forFeature([{ name: 'Cat', schema: CatSchema }], 'cats')
我们如何定义强类型模型?!
就像我们在常规打字稿上所做的一样 (Mongoose the Typescript way...?)
【问题讨论】:
标签: typescript mongoose nestjs
你可以尝试使用 typegoose 来做嵌套 js nest/typegoose
【讨论】: