Explore Developer Center's New Chatbot! MongoDB AI Chatbot can be accessed at the top of your navigation to answer all your MongoDB questions.

Learn why MongoDB was selected as a leader in the 2024 Gartner® Magic Quadrant™
MongoDB Developer
MongoDB Developer Center
chevron-right
Developer Topics
chevron-right

JavaScript

plus Follow
Sign in to follow topics
A lightweight, interpreted, object-oriented language. JavaScript engines execute JavaScript code in client-side (in web browsers) or server-side(for example, the V8 engine is a core component of the Node.js and Deno runtimes).

Featured

Tutorial

Leveraging OpenAI and MongoDB Atlas for Improved Search Functionality

This article delves into the integration of search functionality in web apps using OpenAI's GPT-4 model and MongoDB's Atlas Vector search....
MongoDB thumbnail image
Node.jsAIAtlasVector SearchJavaScript

Sep 18, 2024 | 5 min read
Pavel Duchovny
Tutorial

Adding Real-Time Notifications to Ghost CMS Using MongoDB and Server-Sent Events

MongoDB thumbnail image

Aug 14, 2023 | 7 min read
Video

Vector Search: The Future of Data Querying Explained | Semantic Searching

MongoDB thumbnail image
Play Button

Sep 20, 2023 | 14 min
JavaScript Articles
All JavaScript Articles
Article

Audio Find - Atlas Vector Search for Audio

MongoDB thumbnail image

Sep 09, 2024 | 11 min read
Article

How to Enable Local and Automatic Testing of Atlas Search-Based Features

queryable encryption

Jun 12, 2024 | 8 min read
Article

Entangled: A Story of Data Re-modeling and 10x Storage Reduction

MongoDB thumbnail image

Dec 14, 2023 | 5 min read
All JavaScript Articles
JavaScript Quickstarts
All JavaScript Quickstarts
Quickstart

Building AI Multi-Agents with BuildShip and MongoDB

MongoDB thumbnail image

Nov 18, 2024 | 3 min read
Quickstart

MongoDB Atlas Search Integration with BuildShip

MongoDB thumbnail image

Oct 15, 2024 | 4 min read
Quickstart

Getting Started With Bun and MongoDB

MongoDB thumbnail image

Jul 19, 2024 | 9 min read
JavaScript Code Examples
All JavaScript Code Examples
Code Example

GroupUs

MongoDB thumbnail image

Jul 07, 2022 | 1 min read
Code Example

Magazine Management

MongoDB thumbnail image

Sep 11, 2024 | 0 min read
Code Example

Trends Analyser

MongoDB thumbnail image

Sep 11, 2024 | 1 min read
JavaScript Tutorials
All JavaScript Tutorials
Tutorial

Managing a Smart Product Catalog Metadata Architecture With MongoDB Atlas and Google Cloud

MongoDB thumbnail image

Dec 16, 2024 | 9 min read
Tutorial

Building a Scalable Media Management Back End: Integrating Node.js, Azure Blob Storage, and MongoDB

MongoDB thumbnail image

Nov 05, 2024 | 10 min read
Tutorial

Combining Your Database With Azure Blob Storage Using Data Federation

MongoDB thumbnail image

Oct 08, 2024 | 7 min read
JavaScript Videos
All JavaScript Videos
Video

From Freelancing to MongoDB Champion: Nenad's Journey in Software Development

MongoDB thumbnail image
Play Button

Nov 15, 2024 | 9 min
Video

WhoAmI? The latest JavaScript Runtime Update

MongoDB thumbnail image
Play Button

Nov 13, 2024 | 1 min
Video

LangGraph.js & MongoDB

MongoDB thumbnail image
Play Button

Sep 25, 2024
All JavaScript Content
search
  • Latestcheck
  • Highest Rated
Article

Listen Along at Scale Up With Atlas Application Services

Learn how Scale Up publishes the title of the song playing in the office regardless of the source with an old cell phone and MongoDB Atlas Application Services.
Debugging application on an old and beaten up Nexus 5

Sep 09, 2024
Jasiek Petryk
Tutorial

How to Archive Data to Cloud Object Storage with MongoDB Online Archive

Automatically tier your data across Atlas clusters and cloud object storage while retaining access to query it all with Atlas Data Federation.
MongoDB thumbnail image

Sep 09, 2024
Maxime Beugnet
Tutorial

Real Time Data in a React JavaScript Front-End with Change Streams

In many applications nowadays, you want data to be displayed in real-time. Whether an IoT sensor reporting a value, a stock value that you want to track, or a chat application, you will want the data to automatically update your UI. This is possible using MongoDB Change Streams with the Realm Web SDK.
MongoDB thumbnail image

Sep 09, 2024
Joel Lord
Video

Build a JavaScript AI Agent With LangGraph.js and MongoDB

✅ Written tutorial → https://mdb.link/article-qXDrWKVSx1w ✅ Create your free Atlas cluster → https://mdb.link/free-qXDrWKVSx1w ✅ Get help on our Community Forums → https://mdb.link/forums-qXDrWKVSx1w As a web developer, the idea of integrating AI into your applications might seem overwhelming. But don't worry—I've been there! In this tutorial, I'll walk you through building an AI agent using LangGraph.js and MongoDB, making it way simpler than it sounds. We'll cover the following: ⭐ Understanding what AI agents are and how they work. ⭐ Using LangGraph.js to create agents that can remember past conversations and use "tools" to gather more information. ⭐ Integrating MongoDB for storing conversation history and data retrieval, specifically leveraging MongoDB Atlas Vector Search for context-aware responses. By the end of this video, you'll have built an AI agent capable of managing HR-related queries, looking up employee info from a database, and continuing conversations across multiple sessions. It's like creating your own J.A.R.V.I.S., but for practical, real-world applications! What You'll Learn: ⭐ How to set up LangGraph.js for AI workflows. ⭐ How to integrate MongoDB Atlas to store and retrieve data. ⭐ How to build an AI agent that can manage conversations, look up data, and persist state across sessions. Prerequisites: ✔︎ Node.js and npm ✔︎ Free MongoDB Atlas account ✔︎ OpenAI and Anthropic API keys Clone the project repo and follow along as we create this powerful AI tool. Let’s get started! 🔗 Project Repo: https://github.com/mongodb-developer/LangGraph.js-MongoDB-Example ⏱️ Timestamps ⏱️ 00:00 - Intro 02:50 - Setting up the project 04:29 - Configure MongoDB 05:36 - Seeding the database 12:45 - MongoDB Atlas Vector Search Index 13:50 - Building the AI agent with LangGraph.js 22:47 - Creating the Express.js server 25:44 - Testing the AI agent Subscribe to MongoDB YouTube→ https://mdb.link/subscribe
MongoDB thumbnail image
Play Button

Sep 06, 2024
Video

AI Structured output and MongoDB Atlas services

✅ Sign-up for a free cluster → https://mdb.link/7sF3BRGKRUk-free ✅ Get help on our Community Forums → https://mdb.link/7sF3BRGKRUk-forums - In this live stream we will explore the new Structured Output features from OpenAI that allows a schema definition for AI responses. We will leverage Atlas triggers to use the structured output to automate various application tasks.
MongoDB thumbnail image
Play Button

Sep 05, 2024
Tutorial

A Beginner's Guide to Integrating MongoDB With TensorFlow Using JavaScript

Are you a JavaScript newbie or guru and curious to know how Tensorflow.js works with MongoDB as the database? This tutorial is for you. Follow along as we explain how to use MongoDB with Tensorflow.js.
MongoDB thumbnail image

Sep 04, 2024
Folasayo Samuel Olayemi
Tutorial

NextAuth.js Authentication With MongoDB

Set up NextAuth.js for user authentication in your Next.js 14 app. Integrate email/password logins, configure MongoDB, & implement authentication methods.
MongoDB thumbnail image

Aug 30, 2024
Ahmed Bouchefra
Tutorial

IoT and MongoDB: Powering Time Series Analysis of Household Power Consumption

Explore a case study on household power consumption and how MongoDB's time series collections are leveraged to store and analyze data from IoT devices.
MongoDB thumbnail image

Aug 28, 2024
Nenad Milosavljevic
Video

Setting up a Web Server with Bun #mongodb #tutorial #bun

Learn how to use Bun, a high-performance JavaScript runtime, to build a simple CRUD API with MongoDB. This video walks you through setting up your environment, creating a basic web server, and connecting to a MongoDB database using Bun’s built-in features. Perfect for developers looking to explore alternatives to Node.js with modern tooling.
MongoDB thumbnail image
Play Button

Aug 21, 2024
Video

Setting up API Routes with Bun #mongodb #bun #tutorial

Learn how to use Bun, a high-performance JavaScript runtime, to build a simple CRUD API with MongoDB. This video walks you through setting up your environment, creating a basic web server, and connecting to a MongoDB database using Bun’s built-in features. Perfect for developers looking to explore alternatives to Node.js with modern tooling.
MongoDB thumbnail image
Play Button

Aug 19, 2024