generated from acmucsd-projects/mern-template-updated
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
π added shell commands for the mongoDB shell
- Loading branch information
1 parent
76b1f38
commit ffc4c27
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
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
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 |