title: Collection Filtering using Field in Mongo DB in Meteor?
body: <p>I need to know about filters using mongo collections using collection fields in meteor.</p>
  
  <p>In my collection there are 3 fields in total:</p>
  
  <ol>
  <li>Name</li>
  <li>Staff Yes/No</li>
  <li>Qualification B.tech/M.tech</li>
  </ol>
  
  <p>How to Filter using Staff either selects 'Yes' or 'No' and 'All'?</p>
  
  <p>If selects 'Yes' then only get results from collection in staff field using 'Yes'?</p>
  
  <p>I didn't get any idea about this.So please suggest me what do for this?</p>
  
  <p>Code : </p>
  
  <pre><code>getStaffYesResult: function getStaffYesResult(callback){    
      console.log('********* getStaffYesResult ************** ');
  
      var filterResult = auth_user.findOne({is_staff:1});//Here get all records is staff true indicates 1 in collection.
  
      console.log('filterResult Length : ' + filterResult.length);
  }
  </code></pre>