title: How to write simple queries in MongoDB with C++?
body: <p>I am new to Mongo and am using it with the C++ api.  How do you exactly write queries? I can't find any reference.  I got the example to run a blank query. From what I was able to gather by searching, I got the below but its not correct.  How can I find all documents where the volume field is less than a 1000?  How do I run a query on multiple fields? For example, volume&lt;1000 and otherfield=false.</p>
  
  <pre><code>mongo::BSONObj query("volume" &lt;&lt; mongo::LT &lt;&lt; 1000);
  auto_ptr&lt;mongo::DBClientCursor&gt; cursor = c.query("db.collection", query);
  </code></pre>