title: Couchdb using nano , how to write search query
body: <p>I am facing problem using couchdb.  I am using nano module for this in nodejs. How can I implement search like match for user name and password. I tried this</p>
  
  <pre><code>body.rows.forEach(function(row) {
    if(row.doc._id==user_id &amp;&amp; row.doc.password==password){
      found = true;
      data = row;
    }
  });
  </code></pre>
  
  <p>but this is slow process</p>