对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
See how MongoDB 9.0 delivers up to 2x higher throughput.
MongoDB Branding Shape
Register now >
Docs 菜单

管理Atlas中已保存的查询

连接到集群后,您可以从 My Queries 视图加载已保存的查询。本页介绍如何添加和查看收藏查询。

您可以收藏查询以供将来使用。如果加载收藏的查询,则可以在不更改原始保存副本的情况下对其进行更改。

要将查询添加到收藏夹中,请执行以下操作:

1

Click the clock icon on the query bar in the Documents pane.

2

将鼠标悬停在查询上,然后单击星形 Star 按钮。

3

输入查询名称。

4

连接到集群后,您可以在 My Queries标签页上查看保存的查询和聚合管道。

注意

要学习;了解如何保存和查看聚合管道,请参阅:

当您单击已保存或已收藏的查询图块时,Atlas会打开已加载过滤器的Documents标签页。

在 My Queries 标签页中,您还可以单击 已保存的聚合管道 图块以打开已加载管道的 Aggregations 标签页。

您还可以从 Documents(文档)视图中的 Favorites(收藏)标签页查看收藏查询。要打开 Favorites(收藏)标签页:

1

Click the clock icon at the top of the Documents tab.

2

选择所需的操作。

  • 如果您收藏的操作是查询,则 Favorites 列表视图仅显示 Filter 声明、复制 图标和删除 图标。

    注意

    如果在 Favorites(所需的操作)列表视图中单击所需的查询,则会使用该查询填充 Query Bar(查询栏)。

  • 如果您收藏的操作是批量更新声明,则 Favorites 列表视图仅显示 Filter声明、Update声明、复制图标、删除图标和打开新标签页图标。

    注意

    If you click the open new tab icon, the Update Documents modal opens with the bulk update statement and the filter criteria. For details on bulk update statements in Atlas, see Modify Multiple Documents.

有关如何查看查询历史记录的详细信息,请参阅查看近期查询历史记录。