title: Passing array as parameter in filter function with spring-data-mongodb
body: <p>I have this collection of documents: </p>
  
  <pre><code>[
      {
          "name": "name1",
          "data": [
              {
                  "numbers": ["1","2","3"]
              }
          ]
      },
      {
          "name": "name2",
          "data": [
              {
                  "numbers": ["2","5","3"]
              }
          ]
      },
      {
          "name": "name3",
          "data": [
              {
                  "numbers": ["1","5","2"]
              }
          ]
      },
      {
          "name": "name4",
          "data": [
              {
                  "numbers": ["1","4","3"]
              }
          ]
      },
      {
          "name": "name5",
          "data": [
              {
                  "numbers": ["1","2"]
              }
          ]
      }
  ]
  </code></pre>
  
  <p>I want to get all documents of this collection when an array passed as a parameter is a subset of <strong>data.numbers</strong>. </p>
  
  <p>This is the aggregation that I'm using.</p>
  
  <pre><code>db.testing.aggregate(
      [
          { "$match" : { "data.numbers" : { "$exists" : true } } }, 
          { "$project" : { "is_subset" : { "$filter" : { "input" : "$data", "as" : "d", "cond" : { "$setIsSubset" :[ ["1"],"$$d.numbers"] } } } } }, 
          { "$match" : { "is_subset.0" : { "$exists" : true } } }]
  );
  </code></pre>
  
  <p>I'm trying to reproduce the above aggregation in Spring Data MongoDB. </p>
  
  <p>How to pass an array as parameter in <strong>$filter</strong> and <strong>$setIsSubset</strong> functions?</p>
  
  <pre><code> operations.aggregate(
                      newAggregation(Testing.class,
                              match(where("data.numbers").exists(true)),
                              project().and(
                                      filter("data")
                                              .as("d")
                                              .by(???))
                                      .as("is_subset"),
                              match(where("is_subset.0").exists(true))
                      ), Testing.class);
  </code></pre>