how to get created time while creating schema 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' } });