title: Mongo FindByIdsAndName
body: <p>I have a schema in mongo like this :</p>
  <pre><code>_id,
  name
  </code></pre>
  <p>I want to perform query where I will pass a list of ids and a name to get all the documents whose id matches with the one in input list and name starts with the one in input.</p>
  <p>For eg the collection looks like this :</p>
  <pre><code>_id : 1,
  name : stackOverFlow
  </code></pre>
  <pre><code>_id:2,
  name: stacks
  </code></pre>
  <pre><code>_id:3,
  name:queue
  </code></pre>
  <p>Now I will pass a list [1,2,3] and a name : &quot;stack&quot;.</p>
  <p>Expected output :</p>
  <pre><code>_id:1,
  name: stackoverflow
  </code></pre>
  <pre><code>_id:2,
  name:stacks
  </code></pre>
  <p>I couldn't find any query which solves this use-case. How can this be done via query using springboot?</p>