Created
September 17, 2018 15:18
-
-
Save joaoluiznaufel/92152c4316e3d83ead454f97cc355234 to your computer and use it in GitHub Desktop.
mongo cli
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
#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