0

As far as NestJS has a proper way of define a Model using
MongooseModule.forFeature([{ name: 'Cat', schema: CatSchema }], 'cats')

How can we defined strongly typed models ?!

Just as we do on regular typescript (Mongoose the Typescript way...?)

Herbert Pimentel
  • 425
  • 5
  • 11

1 Answers1

0

you may try to use typegoose for nest js nest/typegoose

zouhair
  • 61
  • 1
  • 8