I\'m using Mongoose, MongoDB, and Node.
I would like to define a schema where one of its fields is a date\\timestamp.
I would like to use this field in order
I would like to use this field in order to return all the records that have been updated in the last 5 minutes.
This means you need to update the date to "now" every time you save the object. Maybe you'll find this useful: Moongoose create-modified plugin