Wednesday, 10 May 2017

Mongoose change _id to id

I would like to know how can i change the _id to id virtually or anyways so the direct json output from the database looks pretty. Additionally i see a __v generated in my documents and not sure how to hide those fields.



via Azarus

No comments:

Post a Comment