how to use mongoose timestamp to query data code example
Example: timestamps in mongoose
const userSchema = mongoose.Schema(
{
email: String,
},
{ timestamps: true }
);
const userSchema = mongoose.Schema(
{
email: String,
},
{ timestamps: true }
);