title: Mongodb query on substring of a field
body: <p>I'd like to retrieve results equals to departement codes, 
  but I'm storing postal codes. Something like that...</p>
  
  <pre><code>db.collection.find({
      {$substr:[cp,0,2]}:{$eq:dpt}
  });
  </code></pre>