mongoose_toJSON_formatter
format toJSON function: rename _id to id
Usage
// Globalmogoose; // In Schemavar Game = ... ;Game;
TODO
- Use config to configure more features not only rename _id.
format toJSON function: rename _id to id
// Globalmogoose; // In Schemavar Game = ... ;Game;
npm i mongoose-tojson-formatter
1
1.0.1
MIT