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

TypeScript

plus Follow
Sign in to follow topics
A strict syntactical superset of JavaScript and adds optional static typing to the language. TypeScript simplifies JavaScript code, making it easier to read and debug.

Featured

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 Visit Mongodb.com → https://www.mongodb.com Read the MongoDB Blog → https://www.mongodb.com/blog...
PrismaMongoDBJavaScriptTypeScript

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
Tutorial

How to Deploy MongoDB Atlas with AWS CDK in TypeScript

MongoDB thumbnail image

Mar 13, 2025 | 5 min read
TypeScript Tutorials
All TypeScript Tutorials
Tutorial

How to Deploy MongoDB Atlas with AWS CDK in TypeScript

MongoDB thumbnail image

Mar 13, 2025 | 5 min read
Tutorial

Supercharge Your AI Applications: AWS Bedrock, MongoDB, and TypeScript

MongoDB thumbnail image

Oct 10, 2024 | 9 min read
Tutorial

Build a JavaScript AI Agent With LangGraph.js and MongoDB

MongoDB thumbnail image

Sep 18, 2024 | 15 min read
All TypeScript Tutorials
TypeScript Videos
All TypeScript Videos
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
Video

Next Generation Commerce as Code: Storecraft

MongoDB thumbnail image
Play Button

Jan 31, 2025 | 61 min
All TypeScript Content
search
  • Latestcheck
  • Highest Rated
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 Visit Mongodb.com → https://www.mongodb.com Read the MongoDB Blog → https://www.mongodb.com/blog
MongoDB thumbnail image
Play Button

Apr 29, 2025
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

How to Deploy MongoDB Atlas with AWS CDK in TypeScript

Learn how to quickly and easily deploy a MongoDB Atlas instance using AWS CDK with TypeScript.
MongoDB thumbnail image

Mar 13, 2025
Zuhair Ahmed (+1)
Video

Next Generation Commerce as Code: Storecraft

✅ Try MongoDB 8.0 → https://mdb.link/OO4arXfO75U-8.0 ✅ Sign-up for a free cluster → https://mdb.link/OO4arXfO75U-free ✅ Subscribe to MongoDB YouTube → https://mdb.link/subscribe - Let's explore the next generation of commerce as code. In this live stream we'll take a look at Storecraft and quickly deploy a backend for an e-commerce website. To get started just run npx storecraft create! Check it our here: https://storecraft.app/
MongoDB thumbnail image
Play Button

Jan 31, 2025
Video

AI Show - Coding with AI coders and MongoDB ChatGPT schema builder.

✅ Try MongoDB 8.0 → https://mdb.link/4dknA21jsII-8.0 ✅ Sign-up for a free cluster → https://mdb.link/4dknA21jsII-free ✅ Schema builder → https://mdb.link/mdb-schema-builder - Join us for a live coding where we will use v0.dev and MongoDB Atlas to build a real-world application. During the live stream we will use the GPT beta for schema building we are testing out.
MongoDB thumbnail image
Play Button

Jan 13, 2025
Video

WhoAmI? The latest JavaScript Runtime Update

Did you know all the updates with Deno 2.0? It really could be a Node.js killer now. Check out the full tutorial on our channel.
MongoDB thumbnail image
Play Button

Nov 13, 2024
Article

The Cost of Not Knowing MongoDB

The focus of this series is to show how much performance you can gain when using MongoDB properly, following the best practices, studying your application needs, and using it to model your data.
MongoDB thumbnail image

Nov 11, 2024
Artur Costa
Tutorial

Getting Started With Deno 2.0 & MongoDB

Deno is a “modern” runtime for JavaScript and TypeScript that is built in Rust. This makes it very fast! Deno 2.0 pairs nicely with MongoDB.
MongoDB thumbnail image

Oct 22, 2024
Jesse Hall
Tutorial

Supercharge Your AI Applications: AWS Bedrock, MongoDB, and TypeScript

MongoDB thumbnail image

Oct 10, 2024
Pavel Duchovny