Last active
May 2, 2018 03:57
-
-
Save tuttelikz/b4fd0bb1ce3d12a410cf297b59726158 to your computer and use it in GitHub Desktop.
Gist to show mongo commands
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
// Display elements of specific collection | |
show dbs | |
use <db name> | |
show collections | |
// Display elements of specific collection | |
db.collectionName.find | |
// Remove all elements from specific collection | |
db.collectionName.remove({}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment