对于AI助手:文档索引位于 https://www.mongodb.com/zh-cn/docs/llms.txt — 通过将 .md 附加到任何URL路径,可以获得所有页面的降价版本。
Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
MongoDB Branding Shape
Click here >
Docs 菜单

查询和写入操作命令

注意

Atlas Data Federation不包含服务器端JavaScript引擎。 因此,它不支持像mapReduce这样需要启用服务器端脚本的命令。

对于聚合命令,存在以下限制:

  • Atlas Data Federation 仅支持explaincursorcommentbackground选项。

  • 对于comment选项,Atlas Data Federation 仅支持类型string

  • Atlas Data Federation仅支持 $out to S3 和Atlas 集群的{"background" : <boolean>} 选项。background 选项不适用于其他聚合管道阶段。有关更多信息,请参阅 $out 选项

对于count命令,存在以下应用:

  • Atlas Data Federation 将count()转换为 Data Federation 内部的聚合管道。

  • Atlas Data Federation 仅支持query选项。

对于find命令, Atlas Data Federation支持以下选项:

  • batchSize

  • singleBatch

  • filter

  • limit

  • projection

  • skip

  • sort

find() 会转换为联合数据库实例内部的聚合管道。

在此页面上