MongoDB Developer
MongoDB Developer Centerchevron-right
Developer Topicschevron-right

Nodejs

Featured

randomAlt
Play Button
Video

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

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...
NodejsMongoDBJavaScript

Apr 29, 2021
randomAlt
Play Button
Video

MongoDB & Node.js: Aggregation & Data Analysis (Part 2 of 4)


May 07, 2021
randomAlt
Play Button
Video

MongoDB & Node.js: Change Streams & Triggers (Part 4 of 4)


May 21, 2021
Nodejs Articles
All Nodejs Articles
random alt
Article

Easy Deployment of MEAN Stack with MongoDB Atlas, Cloud Run, and HashiCorp Terraform


Jan 30, 2023
random alt
Article

Listen Along at Scale Up with Atlas Application Services


Jun 23, 2022
random alt
Article

MongoDB & Mongoose: Compatibility and Comparison


Sep 23, 2022
All Nodejs Articles
Nodejs Quickstarts
random alt
Quickstart

How to Connect MongoDB Atlas to Vercel Using the New Integration


Jun 14, 2022
random alt
Quickstart

Connect to a MongoDB Database Using Node.js


Oct 21, 2022
random alt
Quickstart

Change Streams & Triggers with Node.js Tutorial


Oct 21, 2022
Nodejs Code Examples
random alt
Code Example

Hostels Kenya Example App

Find hostels and student apartments all over Kenya...

Jul 07, 2022
random alt
Code Example

EnSat

An environmental satellite to get information about your environment....

Jul 07, 2022
random alt
Code Example

Blogue

A reading and writing platform. ...

Jul 07, 2022
Nodejs Tutorials
Tutorial

Getting Started with MongoDB Atlas and Azure Functions using Node.js


Nov 03, 2022
Tutorial

Create a Data Pipeline for MongoDB Change Stream Using Pub/Sub BigQuery Subscription


Oct 28, 2022
Tutorial

Integrate MongoDB into Vercel Functions for the Serverless Experience


Jun 28, 2022
Nodejs Videos
randomAlt
Play Button
Video

How to use Azure Functions with the MongoDB Node.js Drivers


Dec 15, 2022
randomAlt
Play Button
Video

How to Integrate Vercel & MongoDB Step-by-Step


Aug 02, 2022
randomAlt
Play Button
Video

MongoDB & Node.js: Change Streams & Triggers (Part 4 of 4)


May 21, 2021
All Nodejs Content
search
  • Newest
  • Highest Rated
alt not provided
Play Button
Video

How to use Azure Functions with the MongoDB Node.js Drivers

Learn how to setup and deploy serverless functions with Azure Functions that interact with MongoDB in this video tutorial featuring Nic Raboy. You'll see how to configure Microsoft Azure, build and test a local functions project, deploy to the cloud, and interact with MongoDB. Resources: https://trymongodb.com/3FxsGdk Connect with Nic on Twitter: https://twitter.com/nraboy ⏱️ Timestamps ⏱️ 00:00 - Intro 00:28 - The Prerequisites 02:05 - Create New Azure Project 06:20 - Create New Azure Function 19:03 - Run and Test an Azure Function Locally 20:07 - Link the Remote and Local Azure Projects 22:24 - Creating Environment Variables in Azure 24:45 - Push the Local Function to the Cloud 26:51 - A Review of the Azure Functions with MongoDB Development Process — ✅ Sign-up for a free cluster at: https://bit.ly/mongodb-free ✅ Get help on our Community Forums: https://bit.ly/mongodb-community Subscribe to MongoDB ➡️ https://bit.ly/3bpg1Z1 #mongodb #azure #nodejs #database...

Dec 15, 2022
MongoDB Atlas and Azure functions
Tutorial

Getting Started with MongoDB Atlas and Azure Functions using Node.js

In this tutorial, we’re going to see just how easy it is to interact with MongoDB Atlas using Azure functions....

Nov 03, 2022
Nic Raboy
alt not provided
Tutorial

Create a Data Pipeline for MongoDB Change Stream Using Pub/Sub BigQuery Subscription

Learn how to set up a data pipeline from your MongoDB database to BigQuery using change streams and Google Cloud Pub/Sub....

Oct 28, 2022
Venkatesh Shanbhag (+1)
Easy deployment of MEAN stack
Article

Easy Deployment of MEAN Stack with MongoDB Atlas, Cloud Run, and HashiCorp Terraform

Learn about using HashiCorp Terraform to make it easier to provision resources to run the MEAN stack on Cloud Run with MongoDB Atlas as your database. ...

Oct 24, 2022
alt not provided
Play Button
Video

How to Integrate Vercel & MongoDB Step-by-Step

✅ Create a new Vercel project: https://bit.ly/vercel-mdb ✅ Sign-up for a free cluster at: https://bit.ly/mongodb-free ✅ Get help on our Community Forums: https://bit.ly/mongodb-community Getting a MongoDB Atlas database created and linked to your Vercel project has never been easier. In this video, we’ll get everything set up—including a starter Next.js application—in just minutes and show you how to properly connect to your database using a serverless function. 📚 For readers, here are written versions: - https://www.mongodb.com/developer/products/atlas/how-to-connect-mongodb-atlas-to-vercel-using-the-new-integration/ - https://www.mongodb.com/developer/languages/javascript/integrate-mongodb-vercel-functions-serverless-experience/ 📚 RESOURCES 📚 Vercel: https://bit.ly/vercel-mdb Atlas: https://bit.ly/mongodb-free Node.js: https://bit.ly/node-mdb Atlas CLI: https://bit.ly/atlascli Connect with Jesse: Twitter: https://bit.ly/tweet-codeSTACKr ⏱️ Timestamps ⏱️ 0:00 Intro 0:16 Prerequisites 0:27 What is Vercel? 0:52 Create a starter project 1:56 Create a Vercel project and integrate MongoDB 4:27 Sync Vercel settings to local environment 6:30 Working with Vercel serverless functions 7:28 Configuring a database cluster in MongoDB Atlas 8:28 Connect to MongoDB and cache connections for a performance optimized experience 13:35 Querying MongoDB from a Vercel function in the Next.js application 15:23 Manage connection using JavaScript modules 17:15 Adding our data to the frontend --- Subscribe to MongoDB ➡️ https://bit.ly/3bpg1Z1 #mongodb #serverless #nextjs...

Aug 02, 2022
alt not provided
Tutorial

Integrate MongoDB into Vercel Functions for the Serverless Experience

Learn how to build a Next.js application that leverages Vercel functions and MongoDB Atlas to create a serverless development experience....

Jun 28, 2022
Nic Raboy
alt not provided
Tutorial

Developing a Web Application with Netlify Serverless Functions and MongoDB

Learn how to build and deploy a web application that leverages MongoDB and Netlify Functions for a serverless experience....

Jun 22, 2022
Nic Raboy
Debugging application on an old and beaten up Nexus 5
Article

Listen Along at Scale Up with Atlas Application Services

Learn how Scale Up publishes the title of the song currently playing in their office regardless of the musical source using an old cellphone and MongoDB Atlas Application Services....

Jun 22, 2022
Jasiek Petryk
alt not provided
Quickstart

How to Connect MongoDB Atlas to Vercel Using the New Integration

Getting a MongoDB Atlas database created and linked to your Vercel project has never been easier. In this tutorial, we’ll get everything set up—including a starter Next.js application—in just minutes....

Jun 07, 2022
Jesse Hall
alt not provided
Code Example
FULL APPLICATION

Hostels Kenya Example App

Find hostels and student apartments all over Kenya...

May 24, 2022