title: Is it possible to mongodump the last "x" records from a collection?
body: <p>Can you use mongodump to dump the latest "x" documents from a collection? For example, in the mongo shell you can execute:</p>
  
  <pre><code>db.stats.find().sort({$natural:-1}).limit(10);
  </code></pre>
  
  <p>Is this same capability available to mongodump? </p>
  
  <p>I guess the workaround would be to dump the above documents into a new temporary collection and mongodump the entire temp collection, but would be great to just be able to do this via mongodump.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Michael</p>