title: How i can insensitive accent an capital letters in agregattion?
body: <p>I want to make a query that does not discriminate by accents or upper or lower case, i have this:</p>
  <pre><code>query &amp;&amp; pipeline.unshift({
    '$match': { 'name': { '$regex': new RegExp(query, 'i') } }
  })
  </code></pre>
  <p>I tried a lot of regex but i don't know how i can use it, can you help me, please</p>