Skip to content

Instantly share code, notes, and snippets.

@joaoluiznaufel
Created September 17, 2018 15:18
Show Gist options
  • Save joaoluiznaufel/92152c4316e3d83ead454f97cc355234 to your computer and use it in GitHub Desktop.
Save joaoluiznaufel/92152c4316e3d83ead454f97cc355234 to your computer and use it in GitHub Desktop.
mongo cli
#insert user:
db.Client.insertOne( {
"id": "5788a5f71b2b6de0148b4567",
"name": "jonho",
"lastname": "dust"
});
#show current table
db
#show other tables
show dbs
#show collections;
show collections;
#delete collection
db.Client.remove(
{ _id: "5b3c9ad1ac70f9d1cffa06f7" }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment