Closed utterances-bot closed 3 years ago
Thanks, I needed this
Hi guyz, please y am I getting typescript error "Property '_id' does not exist on type 'IUserDocument'" when i try to access the id like "user._id"
Alson when i try to use user.toJSON(), i get "Property 'toJSON' does not exist on type 'IUserDocument'"
"mongoose": "^5.13.13",
thanks very good
nice article
[Typescript] mongoose methods, statics | millo's tech blog
https://millo-l.github.io/Typescript-mongoose-methods-statics/