drudge / mongoose-timestamp

Adds createdAt and updatedAt date attributes that get auto-assigned to the most recent create/update timestamp
Other
308 stars 64 forks source link

It is possible to have a configurable parameter? #47

Open carvalhoviniciusluiz opened 6 years ago

carvalhoviniciusluiz commented 6 years ago

it is possible to disable a parameter so that it is not added?

for example:

mongoose.plugin(timestamps,  {
  createdAt: 'created_at',
  updatedAt: false
});