Created
April 23, 2018 06:00
-
-
Save tuttelikz/f00a4c54665fb66d690d8b1be6c4886f to your computer and use it in GitHub Desktop.
Command to show data of mongodb collection
This file contains 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
#Once you are in terminal/command line, access the database/collection you want to use as follows: | |
show dbs | |
use <db name> | |
show collections | |
# choose your collection and type the following to see all contents of that collection: | |
db.collectionName.find() | |
More info here on the MongoDB Quick Reference Guide. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment