Atlas Device SDK for the Web
GraphQL is deprecated. Learn More.
The Atlas Device SDK for the Web lets browser-based applications access data stored in Atlas and interact with App Services services like Functions and authentication. The Web SDK supports both JavaScript and TypeScript.
Web apps built with the SDK can query Atlas using the following methods:
The standard MongoDB query API with the MongoDB client
Unlike the other SDKs, the Web SDK only supports creating an in-memory database, not one persisted to disk.
Get Started with the Web SDK
Working Example App
Learn by example through dissecting a working React app that uses the Web SDK and Atlas GraphQL API.
Develop Apps with the SDK
Use the Web SDK with Atlas App Services to query MongoDB directly, query a GraphQL API, invoke serverless functions, manage user authentication, and more.
Recommended Reading
Quick Start with React
Learn how to add the Web SDK to your React application.
Next.js Integration Guide
Learn all the ways that you can use the Web SDK with your Next.js application.
Example Projects
Explore engineering and expert-provided example projects to learn best practices and common development patterns using the Web SDK. Check out the Example Projects page for more sample apps.
Offline Login and Database Access
Log in a Device Sync user and open a synced database offline.