docs.nestjs.com icon indicating copy to clipboard operation
docs.nestjs.com copied to clipboard

Mongoose `Document` should not be extended

Open MickL opened this issue 1 year ago • 0 comments

According to the Mongoose docs Document from Mongoose should not be extended like it is done in the docs of NestJS.

May one please update the docs to provide another best practice that aligns with the recommendations from the Mongoose docs?

I'm submitting a...

  • [ ] Regression
  • [ ] Bug report
  • [ ] Feature request
  • [X] Documentation issue or request (new chapter/page)
  • [ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

export type CatDocument = Cat & Document;

Expected behavior

New best practice :)

MickL avatar Aug 08 '22 08:08 MickL