title: mongodb-erlang Erlang driver examples
body: <p>Where i can find examples of mongodb-erlang usage ?
  The only source of information i found is this file:
  <a href="https://github.com/TonyGen/mongodb-erlang/blob/master/src/mongodb_tests.erl" rel="nofollow">https://github.com/TonyGen/mongodb-erlang/blob/master/src/mongodb_tests.erl</a>
  But it not covers many of basic queries like following (picked from MongoDB site):</p>
  
  <pre><code>db.collection.find().sort({name : 1, age: -1}).limit(10);
  db.users.find().skip(20).limit(10);
  db.things.ensureIndex({j:1});
  db.things.find({colors : {$ne : "red"}});
  db.collection.find({ "field" : { $gte: value } } );
  db.things.find( { "x.a" : 1, "x.b" : { $gt : 1 } } )
  </code></pre>
  
  <p>So how to write these queries in terms of erlang driver ?</p>