EventGet 50% off your ticket to MongoDB.local London on October 2. Use code WEB50Learn more >>
MongoDB Developer
MongoDB Developer Centerchevron-right
Developer Topicschevron-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

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...
Node.jsTypeScriptJavaScript

Sep 06, 2024 | 31 min
Tutorial

Build a JavaScript AI Agent With LangGraph.js and MongoDB

MongoDB thumbnail image

Sep 06, 2024 | 15 min read
Tutorial

Build a CRUD API With MongoDB, Typescript, Express, Prisma, and Zod

MongoDB thumbnail image

Sep 04, 2024 | 10 min read
TypeScript Tutorials
All TypeScript Tutorials
Tutorial

Build a JavaScript AI Agent With LangGraph.js and MongoDB

MongoDB thumbnail image

Sep 06, 2024 | 15 min read
Tutorial

Build a CRUD API With MongoDB, Typescript, Express, Prisma, and Zod

MongoDB thumbnail image

Sep 04, 2024 | 10 min read
Tutorial

NextAuth.js Authentication With MongoDB

MongoDB thumbnail image

Aug 30, 2024 | 10 min read
All TypeScript Tutorials
TypeScript Videos
All TypeScript Videos
Video

Build a JavaScript AI Agent With LangGraph.js and MongoDB

MongoDB thumbnail image
Play Button

Sep 06, 2024 | 31 min
Video

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

MongoDB thumbnail image
Play Button

Aug 21, 2024
Video

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

MongoDB thumbnail image
Play Button

Aug 19, 2024
All TypeScript Content
search
  • Latest
  • Highest Rated
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
Tutorial

Build a JavaScript AI Agent With LangGraph.js and MongoDB

Learn how to build a powerful AI agent using LangGraph.js and MongoDB. This step-by-step guide will show you how to create AI-driven applications capable of remembering conversations, accessing databases, and delivering smart responses. Perfect for JavaScript developers looking to integrate AI into their web apps.
MongoDB thumbnail image

Sep 06, 2024
Jesse Hall
Tutorial

Build a CRUD API With MongoDB, Typescript, Express, Prisma, and Zod

Dive into modern web development and learn to build a robust CRUD API using TypeScript, Express, Prisma, MongoDB, and Zod.
MongoDB thumbnail image

Sep 04, 2024
Onyedikachi Kindness Eni
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
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
Video

What is 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 16, 2024
Video

How to Get Started With Bun & MongoDB

✅ MongoDB Atlas account → https://mdb.link/WsUOyPL1QnI-register ✅ Get help on our Community Forums → https://mdb.link/WsUOyPL1QnI-forums ✅ Written guide → https://mdb.link/WsUOyPL1QnI-guide" target="_blank" rel="noreferrer">https://mdb.link/WsUOyPL1QnI-guide - 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. For the complete written guide, including code snippets and detailed instructions, check out the full article here: https://mdb.link/WsUOyPL1QnI-guide" target="_blank" rel="noreferrer">https://mdb.link/WsUOyPL1QnI-guide 00:00 - Intro 01:13 - Bun Setup 02:03 - Application Structure 02:53 - Starting the application 03:59 - Connecting to MongoDB 05:54 - Building a movie TypeScript model 06:31 - Create a movies controller 07:53 - Server routing 09:44 - Connecting everything 15:18 - What's next?
MongoDB thumbnail image
Play Button

Aug 14, 2024
Tutorial

Type Safety With Prisma & MongoDB

In this article, explore Prisma, an object relational mapper (ODM) for MongoDB. Prisma helps developers to write code that is both readable and type-safe.
MongoDB thumbnail image

Aug 09, 2024
Jesse Hall
Quickstart

Getting Started With Deno & MongoDB

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

Aug 05, 2024
Jesse Hall