Skip to content

Instantly share code, notes, and snippets.

@tuttelikz
Created April 23, 2018 06:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuttelikz/f00a4c54665fb66d690d8b1be6c4886f to your computer and use it in GitHub Desktop.
Save tuttelikz/f00a4c54665fb66d690d8b1be6c4886f to your computer and use it in GitHub Desktop.
Command to show data of mongodb collection
#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