title: Combination of and or in mongo db query
body: <p>I am trying to debug and issue with my mongo db queries, the one that I m trying to use now looks like this:</p>
  <pre><code>mongo query {
    '$and': {
      '$or': { name: /aaaq/i, 'metadata.description': /aaaq/i },
      '$and': {
        'admin.parentPath': '3e98c9f0-cbe9-4c27-b1af-ba43069907cc',
        'admin.sharedWith': '78b43de0-47c2-495b-a3ad-afc9fb6c9815'
      }
    }
  }
  </code></pre>
  <p>The ide is that I want to check if the name or metadata respect the same regex expression and if the admin.parentPath and admin.sharedWith have the correct value, is this query written correctly?</p>
  <p>The initial query looked like this:</p>
  <pre><code>mongo query {
    name: /aaaq/i,
    'metadata.description': /aaaq/i,
    'admin.parentPath': '3e98c9f0-cbe9-4c27-b1af-ba43069907cc',
    'admin.sharedWith': '78b43de0-47c2-495b-a3ad-afc9fb6c9815'
  }
  </code></pre>
  <p>But I think that this one put AND between all conditions</p>