Skip to main content

Posts

Showing posts with the label MongoDB

M220JS: MongoDB for Javascript Developers

Notes while taking M220JS: MongoDB for Javascript Developers - Learn the essentials of Node.js application development with MongoDB.

MongoDB: CRUD

CRUD stands for Create Read Update Delete. Those are fundamental operations used to manipulate data stored in any type of database, SQL and NoSQL. We must first take a look at some basic commands with database and collection before diving in CRUD documents. Show all databses show dbs or with anyone going from MySQL, use the following command but without semicolon at the end show databases Check current database db Change database use <databasename> Show colletions in a database show collections Create Collection Create a new "myMovies" collection in "movieScratch" database. Insert documents Insert many documents unordered db.<CollectionName>.insertMany( [ { "key1": "value11" "key2": "value12" }, { "key1": "value21" "key2": "value22" } ], { ordered: false } ) Take a look at the result: The third document cannot be inserted due ...

MongoDB: Free Online Courses

MongoDB University has many free and easy to follow courses that you should take first.

MongoDB: Install client on Windows 10

Download link:  https://www.mongodb.com/download-center#enterprise Mongo Shell help Run mongo shell, then run help to display commands. help Try using mongo shell to connect to 100YWeatherSmall database mongo "mongodb://cluster0-shard-00-00-jxeqq.mongodb.net:27017,cluster0-shard-00-01-jxeqq.mongodb.net:27017,cluster0-shard-00-02-jxeqq.mongodb.net:27017/100YWeatherSmall?replicaSet=Cluster0-shard-0" --authenticationDatabase admin --ssl --username m001-student --password m001-mongodb-basics