title: Create a subquery with spring data MongoDB
body: <p>I have a collection for status update of an order service. Each document in this collection is a new update for this Order.</p>
  
  <p>The Document is like this:</p>
  
  <pre><code>{
      "_id": "xxx",
      "orderNumber": 1,
      "notificationDate": ISODate("2019-06-01T20:25:43.280Z"),
      "description": "Something"
  }
  </code></pre>
  
  <p>I must found every order with no update in this month, so I made this query:</p>
  
  <pre><code>db.notificationData.find({"$and": [
      {"orderNumber": {"$nin" : 
          db.notificationData.find({notificationDate: {"$gt": ISODate("2019-06-01") }})
                  .map(function(data) { return data.orderNumber})
      }},
      {notificationDate: {"$lt": ISODate("2019-06-01") }}
  ]});
  </code></pre>
  
  <p>There is a way to get the same result using Spring Data MongoDB??</p>