title: Mongoose Query for Boolean field
body: <p>To query for Boolean field, I have to use "false" instead of false.
  I am using Mongoose with Node JS.</p>
  
  <p>Mongodb Schema Definition:</p>
  
  <pre><code>var MySchema = new mongoose.Schema({
      isPrivate: { type: Boolean, default: false }
  })
  db.model('MyModel', MySchema);
  </code></pre>
  
  <p>Query:</p>
  
  <pre><code>MyModel.find({ isPrivate: false })
  </code></pre>
  
  <p>The above query doesn't return any dataset while the below code does.</p>
  
  <pre><code>MyModel.find({ isPrivate: "false" })
  </code></pre>
  
  <p>Please help.</p>