mongoose-transform
v1.0.1
Published
This package will automatically add field createdAt to each schema, hide __v field and convert _id to id
Downloads
15
Readme
Installation
npm install mongoose-transform
Usage in your schema
const mongooseTransform = require('mongoose-transform');
const schema = new mongoose.model({
name:{type:String}
})
schema.plugin(mongooseTransform)