Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.

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

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

The cost of not knowing MongoDB (V5RX) - Part 2

MongoDB thumbnail image

Jan 29, 2025 | 26 min read
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
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

MongoDB Atlas Authentication Using Service Accounts (OAuth)

MongoDB thumbnail image

Apr 18, 2025 | 9 min read
Tutorial

Sentiment Chef Agent App with Google Cloud and MongoDB Atlas

MongoDB thumbnail image

Mar 14, 2025 | 16 min read
Tutorial

Demystifying Stored Procedures in MongoDB

MongoDB thumbnail image

Mar 13, 2025 | 6 min read
JavaScript Videos
All JavaScript Videos
Video

Build Agentic Workflows with Mastra - The TypeScript Agent Framework

MongoDB thumbnail image
Play Button

May 27, 2025 | 62 min
Video

Prisma can Transform Your MongoDB Development | Type-Safety, Schema Management, & More!

MongoDB thumbnail image
Play Button

Apr 29, 2025 | 6 min
Video

10X Your Development Speed: Prisma + MongoDB + Next.js Ultimate Stack

MongoDB thumbnail image
Play Button

Mar 28, 2025 | 25 min
All JavaScript Content
search
  • Latestcheck
  • Highest Rated
Video

Build Agentic Workflows with Mastra - The TypeScript Agent Framework

✅ Sign-up for a free cluster → https://mdb.link/free-mastra-livestream ✅ Try Mastra.ai → https://mastra.ai/ Our special guest on this live stream is Shane Thomas from Mastra.ai. From the team that brought you Gatsby, Mastra will help you prototype and productionize AI features with a modern JavaScript stack. Let's see it in action!
MongoDB thumbnail image
Play Button

May 27, 2025
Video

Prisma can Transform Your MongoDB Development | Type-Safety, Schema Management, & More!

Try MongoDB 8.0 → https://mdb.link/jYv6lKig4Q4 Subscribe to MongoDB YouTube→ https://mdb.link/subscribe MongoDB has been the go-to database for JavaScript developers for years — but what if you could supercharge your development experience even more? In this video, I’ll show you how Prisma ORM transforms working with MongoDB by adding type safety, clear schema management, optimized queries, and intuitive relationship modeling — without giving up MongoDB's flexibility. Whether you're building a Next.js app, a serverless API, or scaling a production system, combining Prisma and MongoDB gives you the best of both worlds: rapid iteration and strong data integrity. 👨💻 In this video, you’ll learn: Why Prisma is a perfect complement to MongoDB’s flexible document model How Prisma brings type-safe, auto-completed database access with generated TypeScript types How to model MongoDB collections using the Prisma Schema Language Best practices for embedding vs referencing documents in MongoDB How Prisma Accelerate boosts performance with caching and connection pooling Practical tips for setting up Prisma with MongoDB (replica sets, schema pushing, and more) 🛠️ Key topics covered: Defining schemas with schema.prisma Handling MongoDB _id fields cleanly with Prisma Using npx prisma db push for schema updates Type-safe querying with Prisma Client Performance optimization with Prisma Accelerate (TTL + SWR caching strategies) 📈 When should you use Prisma with MongoDB? You want flexible, evolving schemas and strong type safety Your team prefers clear documentation of data models You need efficient, optimized queries without extra boilerplate You're building modern applications with TypeScript, Next.js, or serverless functions Performance and scalability are critical for your project ✅ Getting started is easy: install Prisma, connect your MongoDB database, define your models, generate the Prisma Client, and you're ready to build! 🔥 Resources: Official Prisma Documentation: https://www.prisma.io/docs/orm/overview/databases/mongodb 10X Your Development Speed: Prisma + MongoDB + Next.js Ultimate Stack: https://youtu.be/7t_cL2BQ5Ok?si=jvzbwDfXRpNvK3gC Prisma + MongoDB: The 8 Tips That Will Save You Hours | Build Better Applications: https://youtu.be/Dk7sfVYlnpQ?si=PdV4ipAPu87r8mQT This video is not affiliated with, endorsed by, or sponsored by Prisma. The use of any trademark is solely for informational and identification purposes, so that we may provide clear and accurate descriptions. All opinions and critiques provided in this video are those of the creator and do not reflect the views of Prisma or its affiliates. Visit Mongodb.com → https://www.mongodb.com Read the MongoDB Blog → https://www.mongodb.com/blog
MongoDB thumbnail image
Play Button

Apr 29, 2025
Tutorial

Getting Started with MongoDB Atlas, NodeJS, and Azure App Service

How to easily deploy a MERN Stack application to Azure App Service.
MongoDB thumbnail image

Apr 18, 2025
Luce Carter
Tutorial

MongoDB Atlas Authentication Using Service Accounts (OAuth)

MongoDB thumbnail image

Apr 18, 2025
Wojciech Trocki
Tutorial

How to Integrate MongoDB Into Your Next.js App

Learn how to easily integrate MongoDB into your Next.js application with the official MongoDB package.
MongoDB thumbnail image

Apr 18, 2025
Ado Kukic (+1)
Code Example
FULL APPLICATION

myLeG

This project downloads the substitution plan of my school and converts it into a user-friendly page.
MongoDB thumbnail image

Apr 18, 2025
Video

10X Your Development Speed: Prisma + MongoDB + Next.js Ultimate Stack

Sign-up for a free cluster → https://mdb.link/7t_cL2BQ5Ok-try" target="_blank" rel="noreferrer">https://mdb.link/7t_cL2BQ5Ok-try Subscribe to MongoDB YouTube→ https://mdb.link/subscribe 🚀 Prisma + MongoDB Full-Stack Tutorial with Next.js 15 ✅ Build Modern, Type-Safe Web Apps Faster In this in-depth tutorial, Jesse Hall (aka codeSTACKr) shows how to build a full-stack Next.js 15 app using Prisma ORM and MongoDB. Learn how to boost your development speed, enforce type safety, and scale easily with Prisma Accelerate for serverless environments. Whether you're a seasoned dev or exploring type-safe MongoDB for the first time, this video covers everything you need—from schema modeling to caching strategies. 🔧 What You’ll Learn: - Why choose Prisma - How to connect Prisma to MongoDB Atlas - Modeling MongoDB data with full type safety - Building server actions and server components in Next.js App Router - Using Tailwind CSS + shadcn/ui for modern UI - Improving performance with Prisma Accelerate: connection pooling, edge caching, with TTL and SWR - Deploy-ready example: users, posts, comments—all working together 🧠 Tech Stack: Next.js 15 (App Router) Prisma ORM + Prisma Accelerate MongoDB Atlas Tailwind CSS + shadcn/ui TypeScript 🛠 Prerequisites: Node.js 20+ MongoDB Atlas account Prisma Data Platform account 🔗 Resources & Repo: 👉 Full source code & bonus homework: https://github.com/codeSTACKr/prisma-mongodb-demo 👉 Prisma Docs: https://www.prisma.io/docs/orm/overview/databases/mongodb 👉 MongoDB Atlas: https://mdb.link/7t_cL2BQ5Ok-try" target="_blank" rel="noreferrer">https://mdb.link/7t_cL2BQ5Ok-try 👉 Prisma Accelerate: https://www.prisma.io/accelerate ⏱️ Timestamps ⏱️ 00:00 - Intro 00:44 - The tech stack 02:07 - Agenda & prerequisites 02:36 - Prisma ORM + MongoDB project setup 04:18 - Data modeling with Prisma ORM 06:56 - Setting up a singleton Prisma Client 07:33 - Building API routes with serer actions 10:04 - Building the user interface with server components 13:51 - Expanding app functionality with posts and comments 17:04 - Integrating Prisma Accelerate 20:57 - Accelerate caching strategies 24:48 - Bonus!! This video is not affiliated with, endorsed by, or sponsored by Prisma. The use of any trademark is solely for informational and identification purposes, so that we may provide clear and accurate descriptions. All opinions and critiques provided in this video are those of the creator and do not reflect the views of Prisma or its affiliates. Visit Mongodb.com → https://www.mongodb.com Read the MongoDB Blog → https://www.mongodb.com/blog Check out the MongoDB Developer Center → https://www.mongodb.com/developer
MongoDB thumbnail image
Play Button

Mar 28, 2025
Tutorial

Searching on Your Location with Atlas Search and Geospatial Operators

Learn how to compound Atlas Search operators and do autocomplete searches with geospatial criteria.
MongoDB thumbnail image

Mar 21, 2025
Nic Raboy
Tutorial

Serverless MEAN Stack Applications with Cloud Run and MongoDB Atlas

In this blog, we'll see how Cloud Run and MongoDB come together to enable a completely serverless MEAN stack application development experience.
MongoDB thumbnail image

Mar 14, 2025
Abirami Sukumaran (+1)
Tutorial

Sentiment Chef Agent App with Google Cloud and MongoDB Atlas

In the competitive customer service industry, extracting meaningful insights from customer reviews is challenging. Our team developed Sentiment Chef, an intelligent restaurant agent that goes beyond basic review analysis by leveraging Google Cloud and MongoDB Atlas. This smart platform interprets sentiments from text, images, and videos, providing comprehensive feedback summaries. Designed specifically for the restaurant industry, Sentiment Chef transforms multimodal review data into actionable insights, helping restaurant owners make informed decisions based on customer feedback.
MongoDB thumbnail image

Mar 14, 2025
Stanimira Vlaeva (+1)