title: Spring Data Mongo: How to use the $each modifier?
body: <p>How to use the <code>$each</code> modifier in the following findAndModify query of a MongoTemplate?</p>
  
  <p>I have tried to find it in the Spring Docs, but nothing.</p>
  
  <p><code>answers</code> is the key in Mongo which holds an array.</p>
  
  <p><code>new answers</code> is an array which items should be added to the <code>answers</code> in Mongo.</p>
  
  <pre><code>mongoOperations.findAndModify(
      Query.query(...),
      Update().push("answers", newAnswers)
  )
  </code></pre>