mongodb.admin() 获取链接的MongoDB数据源中 admin数据库的处理。 您可以使用它来运行MongoDB管理命令,例如 admin.getDBNames()。 const mongodb = context.services.get("mongodb-atlas"); const admin = mongodb.admin(); 参数 admin(): AdminDatabas
您只能通过HTTPS访问 Atlas Administration API,确保通过网络发送的所有数据均使用TLS进行完全加密。 用户访问控制 每个Atlas用户的Atlas Administration API功能与其Atlas 用户角色授予的权限相匹配。 例子 在Atlas项目中具有Project Read Only角色的用户无法修改该项目中的任何资源,无论是通过Atlas 用户界面还是Atlas Administr...
通过充分利用函数调用API和MongoDB Atlas的综合功能,您可以简化内容引入过程,释放向量嵌入在GenAI应用中的全部潜力。 详细分解 向量嵌入 MongoDB Atlas提供在文档的核心存储向量嵌入的功能。这些嵌入是通过将文本、视频或音频转换为向量而生成的,利用诸如 GPT4All、OpenAI 或Hugging Face 等模型。 代码片段: # Chunk In...
2. 由于Atlas支持基于纯API式的通信方式,因此消费者端可以通过多种身份验证和授权机制(如:基本的身份验证、oAuth2等),通过标准的REST接口,去调用数据库。3. 其GraphQL功能可以通过API进行查询。也就是说,用户可以通过从底层数据库架构自动生成架构,去轻松地为其端点设置API。4. 诸如NodeJS应用和Gatsby的JAMStac...
Cluster-to-Cluster Sync (compatible with MongoDB 7.0+): Real-time hybrid cloud sync using Change Streams API. Supports filtered synchronization and 1:1 namespace mapping. Commonly used for disaster recovery and analytics mirroring. Atlas minimizes disruptions, allowing developers and engineering leaders...
MongoDB 周四推出了Atlas Data API的预览版,这是一个完全托管的、类似于 REST 的 API,用于访问 Atlas 数据。 使用数据 API,开发人员可以从后端以任何语言查询 MongoDB,无需驱动程序。它提供对任务所需数据的快速访问,例如构建以数据为中心的微服务或与第三方服务集成。 通常,在构建这些类型的数据服务时,开发...
The authentication database for SCRAM-authenticated users is the admin database. Note By default, Atlas supports SCRAM-SHA-256 authentication. If you have any database users created before the release of MongoDB 4.0, update their passwords to generate SCRAM-SHA-256 credentials. You may reuse exi...
In this section, you’ll complete two tasks: fork a copy of the Postman Collection with all of the Atlas Administration API calls and configure the authorization for all of the requests in the collection. Note: The steps below will use the Postman web interface, but you can choose to use...
Add a description, image, and links to the mongodb-atlas-api topic page so that developers can more easily learn about it. Curate this topic Add this topic to your repo To associate your repository with the mongodb-atlas-api topic, visit your repo's landing page and select "manage ...
要用AtlasUI创建一个MongoDB数据库,请打开一个浏览器窗口并登录到https://cloud.mongodb.com。从你的集群页面,点击Browse Collections。如果集群中没有数据库,你可以通过点击Add My Own Data按钮创建你的数据库。 提示将要求你提供一个数据库和集合的名称。一旦你命名了它们,点击Create,你就完成了! 现在你可以输入...