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

The OpenAI Agents SDK for TypeScript is Missing Something—And That’s Ok

MongoDB thumbnail image
Play Button

Jun 05, 2025 | 5 min
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
All JavaScript Content
search
  • Latestcheck
  • Highest Rated
Video

The OpenAI Agents SDK for TypeScript is Missing Something—And That’s Ok

Try MongoDB 8.0 → https://mdb.link/s3X2N5AoVd8-try Sign-up for a free cluster → https://mdb.link/s3X2N5AoVd8-register 📚 Resources: OpenAI Agents SDK with MongoDB Template: https://.com/mongodb-developer/GenAI-Showcase/tree/main/apps/openai-agents-sdk OpenAI Agents SDK Docs: https://openai..io/openai-agents-js/ Subscribe to MongoDB YouTube→ https://mdb.link/subscribe Learn how to build powerful AI agents using the new OpenAI Agents SDK for TypeScript with MongoDB as a memory provider. In this tutorial, I'll show you how to create context-aware agents that remember conversations and improve over time. Unlock the power of AI agents in TypeScript! Explore the new OpenAI Agents SDK for TypeScript, a powerful tool that brings robust AI capabilities directly to your JavaScript/TypeScript applications. Discover its core features like agent loops, handoffs, guardrails, and function tools. Learn about the crucial missing piece: memory persistence. We'll show you how to integrate MongoDB as a memory provider to give your AI agents conversational context, remember past interactions, recognize returning users, and even track performance. This enables you to build more intelligent applications, from customer support to personalized educational tools. 🔥 What You'll Learn: How to use the OpenAI Agents SDK for TypeScript Implementing MongoDB as a memory system for AI agents Building agents that maintain conversation context Creating personalized AI assistants that learn from interactions TypeScript-first development with strong typing support ⚡ Key Features Covered: Agent loops and conversation management Function tools with automatic schema generation Handoffs between multiple specialized agents Built-in tracing and debugging tools Real-time agent capabilities 💡 Perfect For: TypeScript/JavaScript developers AI application builders MongoDB developers Anyone building chatbots or AI assistants 🛠 Tech Stack: OpenAI Agents SDK for TypeScript MongoDB for conversation memory Node.js backend integration TypeScript for type safety 0:00 Introduction to OpenAI Agents SDK for TypeScript 0:54 Core Features of the SDK 2:06 The Missing Key Feature 2:40 MongoDB as a Memory Provider 3:02 Implementing Memory in Code 3:27 Why TypeScript Developers Will Love This 3:54 Real-World Agent Applications & Template This video is not affiliated with, endorsed by, or sponsored by OpenAI. 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 OpenAI or its affiliates. Visit Mongodb.com → https://mdb.link/MongoDB Read the MongoDB Blog → https://mdb.link/Blog Read the Developer Blog → https://mdb.link/developerblog
MongoDB thumbnail image
Play Button

Jun 05, 2025
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 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://.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)