Skip to content

Instantly share code, notes, and snippets.

View 5pid3rm3n's full-sized avatar

Itamar C 5pid3rm3n

View GitHub Profile
5pid3rm3n / mongo-cheat-sheet.js
Created August 5, 2018 13:50 — forked from raineorshine/mongo-cheat-sheet.js
Cheat Sheet: MongoDB
mongod & // start mongo server on port 27017 by default
mongo mydb // launch mongo shell using the specified database
// importing & exporting
mongoimport -d mydb -c mycollection --jsonArray --file input.json
mongoimport -d mydb -c mycollection --headerline --type csv --file input.csv
mongoexport -d mydb -c mycollection --out output.json
5pid3rm3n /
Created July 16, 2018 19:39 — forked from bradtraversy/
Online Resources For Web Developers (No Downloading)