title: Use 'arrayfilters' to update the sub array using Jongo
body: <p>The following query works in the MongoDB console.</p>
  
  <pre><code>db.getCollection('safetyPlan').update({"user": "username"}, {"$set": {"stepItems.$[i].items.deleteFl": true}}, {"arrayFilters": [{"i.items._id": new ObjectId("3w43esrw3er2343rsfsdf333")}]});
  </code></pre>
  
  <p>The same query written using Jongo:</p>
  
  <pre><code>collection.update("{user: #}", user)
                                  .with("{'$set': {'stepItems.$[i].items.deleteFl': true}}, {'arrayFilters': [{'i.items"
                                          + "._id': #}]}", user, new ObjectId(planId));
  </code></pre>
  
  <p>When I try to execute the Java code, it throws:</p>
  
  <pre><code>java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Too many parameters passed to query: {'$set': {'stepItems.$[i].items.deleteFl': true}}, {arrayFilters: [{'i.items._id': #}]}
  </code></pre>
  
  <p>Can someone give me the correct syntax to use arrayFilters using Jongo. I doubt if Jongo supports it.</p>
  
  <blockquote>
    <p>I'm using Jongo: 1.3.0 and mongo-java-driver: 3.7.1</p>
  </blockquote>