← ShimoDocs Suite Deployment Documentation
Tip
MongoDB is used to view MongoDB databases, collections, and document contents in the operations platform. It is suitable for troubleshooting document-based data, intermediate states, task records, and business data with flexible structures.
This page supports searching by database or collection. After selecting a collection, MongoDB JSON can use conditional queries.
1. Access MongoDB
- Log in to the MDP Operations Platform.
- Select System Services in the left sidebar.
- Expand Middleware Tools.
- Select MongoDB.
The left side of the page displays the database and collection tree, while the right side shows query conditions and query results.
2. Search for Databases or Collections
- Enter DATABASE_NAME Type the keyword of the database or collection name into the search box in the top left corner.
- View the filtered tree list.
- Clear the search box to restore the display of all databases.
3. Expand the database and select a collection
- Locate the target database in the left tree.
- Click the expand icon to the left of the database to load the collection list.
- Select the target collection.
- The right page will automatically perform a query once using the default conditions.
{}.
Selecting only the database will not execute a collection query; you need to select a specific collection first, then the query area will be displayed on the right.
4. Fill in the query conditions
- Fill in MongoDB JSON Enter the query conditions in the query input box on the right.
- Select the number of results to return, supporting
limit: 10,limit: 20,limit: 50. - Click Query.
Query example:
{
"_id": "task-123"
}
Example of querying by field:
{
"status": "running"
}
5. View Query Results
- After the query is completed, view the returned documents in the results area on the right.
- By default, results are displayed in JSON format.
- Click Expand to expand the current document.
- Click Collapse to collapse the current document.
- Click Copy to copy the current document JSON.
6. Common Troubleshooting Scenarios
| Scenario | Suggested Action |
|---|---|
| Confirm if the document exists | After selecting the collection, query using _id or the business ID. |
| Check task status | Query using the task ID and check the status field and update time field. |
| Find a particular record | Query using a combination of fields such as status, type, and creation time. |
| No results | Check whether the correct database, collection, field names, and field types are selected. |
| Need to remove troubleshooting results | Click Copy to copy a single result. |