title: Search API between client and server in mongodb
body: <p>I have my server in nodejs and client in angularjs, mongodb(mongoose) as database. I want my client to be able to make a search query with all the normal consitions put in like fixing few fields to certain values, search string contained in few of the fields etc</p>
  
  <p>query can be </p>
  
  <pre><code>(value of field A can be 'x' or 'y') and 
  (value of field B can range between dates P and Q) and
  (string s contained in fields C or D or E)    few more
  </code></pre>
  
  <p>is there any npm plugin or standardisation I can follow to enrich my server side API and also directly put the expression while querying with out doing a map reduce with multiple queries(with lots of code).</p>