Javascript and Mongodb Tutorial with Mongodb NodeJS Driver

Veröffentlicht am: 11 Oktober 2019
auf dem Kanal: Hussein Nasser
27,792
655

Check out my udemy Introduction to Database Engineering course
https://husseinnasser.com/courses

Learn the fundamentals of database systems to understand and build performant backend apps

Mongodb is a document-oriented database that fits into the family of NOSQL databases. In this video we will learn how to establish a connection from Javascript through NodeJS to a MongoDB database through the new mongodb nodejs driver. We will do the basic CRUD operations, create update delete and read.


Spinning a mongodb db

docker run -p 27017:27017 --name mdb mongo


Create a connection

Find

Insert
db.Employee.insert()
Remove
db.Employee.remove({Employeeid:22})
Update
db.Employee.update(
{"Employeeid" : 1},
{$set: { "EmployeeName" : "NewMartin"}});
Query
db.Employee.find().limit(2).forEach(printjson);
Count
db.Employee.count()



timecodes
0:00 intro
2:46 : Spin docker
4:45 : Connect to mongo
14:45 : Find Document
24:25 : Insert Document
27:20 : Update Document
30:20 : Delete Document

cards

1:45 Mongodb docker


Mongodb doc
https://mongodb.github.io/node-mongod...



Source Code
https://github.com/hnasr/javascript_p...



Support me on PayPal https://bit.ly/33ENps4
Become A Patron   / hnasr  

Stay Awesome!
Hussein


Auf dieser Seite können Sie das Online-Video Javascript and Mongodb Tutorial with Mongodb NodeJS Driver mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Hussein Nasser 11 Oktober 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 27,792 Mal angesehen und es wurde von 655 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!