title: How to query a field in MongoDB with a boolean value and return a boolean whether it's true or false
body: <p><strong>Check my simple collection:</strong></p>
  <pre><code>{_id: &quot;01&quot;,
    name: &quot;Jimmy&quot;,
    canDrive: false }
  </code></pre>
  <p>What I want to do once a <code>document</code> is found, is to manipulate a DOM and show a <code>&lt;div class=&quot;driving-tutorial&gt;</code> if the field <code>canDrive</code> value is <code>false</code> and hide it if the value is <code>true</code></p>
  <p><strong>Like this in meteor:</strong></p>
  <pre><code>Template.profile.rendered = function() {
      if (&lt;query&gt;,&lt;field&gt; == true){
          $('.driving-tutorial').hide();
      else {
          $('.driving-tutorial').show(); }
  </code></pre>