Shell/Bash: mongodb shell query last document Example
Shell/Bash Example: This is the "mongodb shell query last document" Example. compiled from many sources on the internet by SimpleTutorials.org
mongodb shell query last document
db.collection.find().limit(1).sort({$natural:-1})
* Summary: This "mongodb shell query last document" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!