Skip to content

Commit

Permalink
🐚 added shell commands for the mongoDB shell
Browse files Browse the repository at this point in the history
  • Loading branch information
3dcantaloupe committed Aug 1, 2024
1 parent 76b1f38 commit ffc4c27
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dbShellCommands.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
mongosh "mongodb+srv://gogogrocery.yameky9.mongodb.net/" --apiVersion 1 --username goGoGrocery
show dbs
use [dbName]
show tables
use [collectionName]

AFTER CONNECTING TO THE DATABASE:
db.login.insertOne({email:"[email protected]",password:"sup3rs3cure",name:"ex exe"})

command cheat sheet: https://gist.github.com/michaeltreat/d3bdc989b54cff969df86484e091fd0c

0 comments on commit ffc4c27

Please sign in to comment.