Created
January 18, 2019 09:49
-
-
Save pablocattaneo/a7d2e1e52febf5c498631113a1f417a0 to your computer and use it in GitHub Desktop.
How to get one document in mongodb? #mongoShell
Source: https://www.udemy.com/mongodb-the-complete-developers-guide/learn/v4/t/lecture/11739212?start=165
https://docs.mongodb.com/manual/reference/method/db.collection.find/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.collectionName.find({ key:value }) | |
// Example: | |
db.usersToSendEmail.find({_id: ObjectId("5c405972f3d33522c6242d31")}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment