MongoDB Developer
JavaScript
plus
Sign in to follow topics
MongoDB Developer Centerchevron-right
Developer Topicschevron-right
Languageschevron-right
JavaScriptchevron-right

MongoDB & Node.js: Connecting & CRUD Operations (Part 1 of 4)

Published Apr 29, 2021
NodejsMongoDBJavaScript
Facebook Icontwitter iconlinkedin icon
Rate this video
star-empty
star-empty
star-empty
star-empty
star-empty
If you're a Node.js developer who wants to learn MongoDB, start here! In this quick start tutorial for beginners, Developer Advocate Lauren Schaefer walks through the basics of how to connect to a MongoDB Atlas database using a Node.js script. Then she explains how data is stored in MongoDB using documents and collections. Finally, she explains how to execute each of the CRUD (create, read, update, and delete) operations. She explains how to use insertOne(), insertMany(), findOne(), find(), updateOne() with and without upsert, updateMany(), deleteOne(), and deleteMany(). Chapters: 00:00 Intro 01:00 How to Connect 08:22 How MongoDB Stores Data 11:47 How to Create Documents 17:16 How to Read Documents 24:46 How to Update Documents 35:58 How to Delete Documents 41:10 Wrapping Up Links Lauren mentions in the video: Lauren's blog post: Connect to a MongoDB Database Using Node.js https://www.mongodb.com/blog/post/quick-start-nodejs-mongodb--how-to-get-connected-to-your-database Lauren's blog post: MongoDB and Node.js Tutorial - CRUD Operations https://developer.mongodb.com/quickstart/node-crud-tutorial Lauren's GitHub repo with the code from this video https://github.com/mongodb-developer/nodejs-quickstart Back to Basics Webinar Recording https://www.mongodb.com/presentations/back-to-basics-webinar-2021 Other videos in this tutorial series: Part 2: https://youtu.be/iz37fDe1XoM Part 3: https://youtu.be/bdS03tgD2QQ Part 4: https://youtu.be/9LA7_CSyZb8 Connect with Lauren: Twitter: https://twitter.com/lauren_schaefer TikTok: https://tiktok.com/@lauren_schaefer LinkedIn: https://www.linkedin.com/in/laurenjanece/ MongoDB Community: https://developer.mongodb.com/community/forums/t/hey-friends-im-lauren/168 Subscribe to MongoDB ►►► https://bit.ly/3bpg1Z1 Connect with MongoDB: Website: https://bit.ly/2LjtNBZ Twitter: https://bit.ly/3fH87gR Facebook: https://bit.ly/3fEaIsd Linkedin: https://bit.ly/2SY9w90 Instagram: https://bit.ly/3bn9bDv Community Forums: https://bit.ly/2I8VCi5 TikTok: https://bit.ly/3fHoqdJ
All MongoDB Videos

Facebook Icontwitter iconlinkedin icon
Rate this video
star-empty
star-empty
star-empty
star-empty
star-empty
Related
Article

Build a Newsletter Website With the MongoDB Data Platform


Sep 23, 2022
Tutorial

Using the Node.js MongoDB Driver with AWS Lambda


Feb 09, 2023
Code Example

Connect to a MongoDB Database Using Node.js


Oct 21, 2022
Tutorial

Type Safety with Prisma & MongoDB


May 19, 2022