title: Spring Data Mongodb Lookup pipeline
body: <p>I have the following MongoDb query:</p>
  
  <pre><code>db.table.aggregate([
  {
      $lookup:
      {
          from: "secondTable",
          localField: "_id",
          foreignField: "_id",
          as: "secondTableDto"
      }
  },
  {
      $unwind: "$secondTableDto"
  },
  {
      $lookup:
      {
          from: "accounts",
          pipeline: [],
          as: "accountDto"
      }
  },
  ...........
  </code></pre>
  
  <p>The query is working and now I'm trying to parse it to Spring Data Mongo but I can't find how to do the last lookup with just the pipeline.</p>
  
  <p>Does Spring support it? I've read on the website this feature was released on Mongo 3.6</p>
  
  <p>Thank you</p>