title: Complex query filters in MongoDB via Node.js
body: <p>Is there a way to query multiple fields and apply a filter to each one of them, in MongoDB, from NodeJS?</p>
  
  <p>Example:</p>
  
  <p>Imagine a collection with users profiles (name, surname, nick, age, etc...). Can I, somehow, query it like this:</p>
  
  <pre><code>db.collection("users").find({}).filter([
      {field: 'name', operator: 'startswith', value: 'Ji'},
      {field: 'surname', operator: 'contains', value: 'om'},
      {field: 'nick', operator: 'endswith', value: 'mmy'}
  ]); //Searching for Jimmy Thomson (alias jimmy)
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>I forgot to mention that I'm not looking for regex.</p>