# MongoDB 检查

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/help/idea/llms.txt).

您可以在   数据库  工具窗口中查看 MongoDB 集合和字段。

IntelliJ IDEA 会从每个集合获取前 10 个文档，以获取字段信息。 您可以在   数据源和驱动程序   对话框 ( `Shift+Enter` (Windows), `⌘ I` (macOS), `⇧ ⏎` (IntelliJ IDEA Classic (macOS)), `⌘ I` (macOS System Shortcuts), `Shift+Enter` (XWin), `Shift+Enter` (GNOME), `Shift+Enter` (KDE), `Shift+Enter` (Emacs), `Shift+Enter` (Sublime Text), `⌘ I` (Sublime Text (macOS)), `Shift+Enter` (Visual Studio), `⌘ I` (Visual Studio (macOS)), `Shift+Enter` (NetBeans), `Shift+Enter` (Eclipse), `⌘ I` (Eclipse (macOS)) ) 的   高级   选项卡上指定  `fetch_documents_for_metainfo`  JDBC 参数，以自定义此行为。

Procedure: 获取更多文档

1. 在   数据库   工具窗口中，右键单击 MongoDB 数据源并选择   Properties  。

2. 点击   高级  选项卡。

3. 在参数表中，向下滚动直到看到  `fetch_documents_for_metainfo` 。

4. 双击   值  参数的  `fetch_documents_for_metainfo` 单元格。

5. 指定所需的值。

![为 MongoDB 检查获取更多文档](https://resources.jetbrains.com.cn/help/img/idea/2026.3/db_fetch_documents_for_metainfo.png)

## See also

### 参考

[数据源及其元素](database-tool-window.html#icons-for-data-sources-and-their-elements) [数据源和驱动程序对话框](data-sources-and-drivers-dialog.html)

### 工具 Windows

[数据库工具窗口](database-tool-window.html)

