Atlas Device SDK for the Web
El Atlas Device SDK para la web permite que las aplicaciones basadas en navegador accedan a los datos almacenados en Atlas e interactúen con los servicios de App Services, como Funciones y autenticación. El SDK Web admite tanto JavaScript como TypeScript.
Las aplicaciones web compiladas con el SDK pueden query Atlas usando los siguientes métodos:
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
Inicio rápido
Minimal-explanation code examples of how to work with the Web SDK.
Working Example App
Aprenda mediante el ejemplo diseccionando una aplicación React funcional que usa el Web SDK y el 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.
Configura Servicios de aplicaciones de Atlas
You can use the Web SDK to query MongoDB Atlas data directly from the browser. Perform CRUD, aggregation, and listen for database changes.
First, you must create an App Services App, set up database rules, and enable user authentication.
Connect to an Atlas App Services App
To access your App Services App from the browser, initialize the App client.
Authenticate a User
To authenticate a user, usee one of the App Services authentication providers. App Services includes custom JWT, Facebook, Google, Apple, anonymous, and built-in email/password authentication providers.
Query MongoDB
Query MongoDB directly from the browser using your authenticated user. The user can only access data that they're authorized to.
For more information, refer to Query MongoDB.

Configure Atlas GraphQL API
The Atlas GraphQL API automatically generates a hosted endpoint with GraphQL queries and mutations based on JSON schemas for the documents in your database.
Configure la autenticación de aplicación Services con reglas de acceso a los datos para controlar qué usuarios tienen acceso a qué datos. Configure la API GraphQL en Atlas App Services.
Connect to Atlas App Services
To access your App Services App from the browser, initialize the App client.
Authenticate a User
To authenticate a user, usee one of the App Services authentication providers. App Services includes custom JWT, Facebook, Google, Apple, anonymous, and built-in email/password authentication providers.
Query the GraphQL API
Query la API GraphQL utilizando un cliente GraphQL desde el navegador. Autentique las solicitudes con credenciales de usuario.
Learn how to query the GraphQL API with the Apollo Client.

Call Serverless Functions
You can call serverless Functions from your client application that run in an App Services backend.
Authenticate Users
Authenticate users with built-in and third-party authentication providers. Use the authenticated user to access App Services.

Lectura Recomendada
Referencia de la API de JavaScript
Explora los docs de referencia para los SDK de JavaScript.
Quick Start with React
Aprende cómo añadir el SDK Web a tu aplicación React.
Next.js Integration Guide
Learn all the ways that you can use the Web SDK with your Next.js application.
Example Projects
Explora proyectos de ejemplo proporcionados por ingenieros y expertos para aprender las mejores prácticas y patrones de desarrollo comunes utilizando el Web SDK. Consulta la página de Proyectos de ejemplo para ver más aplicaciones de muestra.
Offline Login and Database Access
Log in a Device Sync user and open a synced database offline.