Answers for "createdAt expires mongoose"

2

createdAt expires mongoose

var TestSchema = new mongoose.Schema({
  name: String,
  createdAt: { type: Date, expires: '2m', default: Date.now }
});
Posted by: Guest on September-10-2020

Code answers related to "createdAt expires mongoose"

Code answers related to "Javascript"

Browse Popular Code Answers by Language