find first ten document mongodb code example
Example 1: mongodb shell query last document
db.collection.find().limit(1).sort({$natural:-1})
Example 2: mongodb find multiple fields
{ <field1>: <value>, <field2>: <value> ... }
db.collection.find().limit(1).sort({$natural:-1})
{ <field1>: <value>, <field2>: <value> ... }