PhpStorm 2024.3 Help

How to fetch more fields for MongoDB introspection

You can observe collections and fields in the database explorer. PhpStorm fetches the first 10 documents from each collection to get information about the fields. You can customize this behavior by specifying the fetch_documents_for_metainfo JDBC parameter on the Advanced tab of the data source properties dialog.

  1. In the Database tool window (View | Tool Windows | Database) , right-click MongoDB data source and select Properties.

  2. Click the Advanced tab.

  3. In the parameter table, scroll down till you see fetch_documents_for_metainfo.

  4. Double-click the Value cell of the fetch_documents_for_metainfo parameter.

  5. Specify the desired value.

Last modified: 14 March 2024