how to add an updated_at field in mongodb code example
Example 1: mongodb created_at updated_at
var thingSchema = new Schema({..}, { timestamps: true });
Example 2: mongodb created_at updated_at
var thingSchema = new Schema({..}, { timestamps: { createdAt: 'created_at' } });