title: Which SchemaType in Mongoose is Best for Timestamp?
body: <p>I'm using Mongoose, MongoDB, and Node.</p>
  
  <p>I would like to define a schema where one of its fields is a date\timestamp.</p>
  
  <p>I would like to use this field in order to return all of the records that have been updated in the last 5 minutes.</p>
  
  <p>Due to the fact that in Mongoose I can't use the Timestamp() method I understand that my only option is to use the following Javascript method: </p>
  
  <pre><code>time : { type: Number, default: (new Date()).getTime() } 
  </code></pre>
  
  <p>It's probably not the most efficient way for querying a humongous DB. 
  I would really appreciate it if someone could share a more efficient way of implementing this.</p>
  
  <p>Is there any way to implement this with Mongoose and be able to use a MongoDB timestamp?</p>