Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
Node.js SDK

Servicios de aplicaciones - SDK de Node.js

Realm proporciona SDK que le ayudan a conectar sus aplicaciones cliente al backend de Atlas App Services. El SDK proporciona la funcionalidad necesaria para autenticar usuarios con cualquiera de las funciones integradas. Los proveedores de autenticación llaman a las funciones Atlas y acceden directamente a una base de datos MongoDB.

Al usar el SDK para acceder al backend de App Services, se comienza con un objeto App. Este objeto proporciona todas las demás funciones relacionadas con App Services. App El objeto se inicializa con el ID de la aplicación, que puede encontrar en la interfaz de usuario de App Services.

Tip

To learn how to initialize the App client, see Connect to an Atlas App Services Backend - Node.js SDK.

One of the most challenging aspects of client development is implementing a robust and secure authentication system. With the Realm SDKs, however, you can use any of the App Services authentication providers with very minimal backend setup or client-side code required. With the authentication APIs, you can implement the following functionality:

  • Creation of new user accounts

  • Inicio de sesión y cierre de sesión de usuario

  • Multiple users logged on at the same time on the same device

  • Linking user accounts from different providers

  • Proporcionar datos de usuario personalizados

Tip

To learn how to set up authentication with different providers, see Authenticate Users - Node.js SDK.

Para aprender a gestionar múltiples usuarios, consulta Aplicaciones multiusuario - Node.js SDK.

Para aprender a vincular cuentas de usuario, consulte Vincular identidades de usuario - SDK de Node.js.

To learn how to provide custom user data, see Access Custom User Data - Node.js SDK.

Functions enable you to define and execute server-side logic for your application. You can call these functions from your client applications via the Realm SDKs. These server-side functions can run under the context of the authenticated user, and thus honor the rules, roles, and permissions that you have assigned to your collections.

By using Functions, you provide a secure way for a variety of client applications to share complex functionality without having to reproduce that logic client-side.

Tip

Para aprender a llamar funciones, consulta Llamar a una función.

The Realm SDKs include APIs for accessing a MongoDB Atlas instance directly. With these APIs, you can perform all of the standard CRUD operations from your client. For security, you configure server-side data access rules to dynamically determine read & write permissions for every object that is accessed.

Tip

Para aprender a usar las API de MongoDB, consultar Query MongoDB.

Volver

React to Changes

En esta página