title: Is it possible to create that query using Spring Data with mongoDB?
body: <p>like in question is it possible to create that query?</p>
  <pre><code>db.persons.find({ 'oi': '5f2417e3c655cb13e85186df', 'ch': { $elemMatch: { 'type': { $in: ['MAN']  }}}}, {'ch.$': 1})
  </code></pre>
  <p>The last part of this query is problematic. How to retrive fields that pass the $elemMatch predicate only.
  Spring data @Query annotation have field property but if specify it by <code>{'children: 1'}</code> I retrive all children instead of this which pass the query.<br />
  <code>{ 'children.$': 1}</code> doesn't work of course.</p>