Skip to content

Instantly share code, notes, and snippets.

@tuttelikz tuttelikz/mongo_cmd.txt
Last active May 2, 2018

Embed
What would you like to do?
Gist to show mongo commands
// 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
You can’t perform that action at this time.