title: Mongoose $ project
body: <p>Using Mongoose <code>4.0.x</code>, I need to execute the following (working) MongoDB query:</p>
  
  <pre><code>db.bookings.find(
    {
      user: ObjectId("10"), // I replaced the real ID
      'flights.busy.from': {$gte: ISODate("2015-04-01T00:00:00Z")},
      'flights.busy.to': {$lte: ISODate("2015-04-01T23:59:00Z")}
    },
    {
      'flights.$': 1 // This is what I don't know to replicate
    }
  ).pretty()
  </code></pre>
  
  <p>The <a href="http://mongoosejs.com/docs/api.html#query_Query-find" rel="nofollow">Mongoose <code>find</code></a> operator does not accept a <a href="http://docs.mongodb.org/manual/reference/operator/projection/positional/#proj._S_" rel="nofollow"><code>projection</code></a> operator, like the <a href="http://docs.mongodb.org/manual/reference/method/db.collection.find/#db.collection.find" rel="nofollow">MongoDB <code>find</code></a> one does.</p>
  
  <p>How can I replicate the above query in Mongoose? Filtering the array once the query is returned is a solution I would like to avoid.</p>