Get
MongoDB Plugin – Get Action
Summary (SEO Meta Description):
The Get Action of the MongoDB Plugin retrieves a single document from a MongoDB collection by its unique key.
It allows workflows to quickly fetch and process stored data without writing custom queries.
Overview
The Get Action enables your workflow to retrieve one document from a specified MongoDB collection using its Document ID.
This is useful whenever you need to look up and use data that has already been inserted.
Typical Use Cases:
- Fetch a customer profile by its unique ID for personalization
- Retrieve an order’s details for downstream processing
- Access IoT device data or telemetry using a unique identifier
- Get a user session record to validate access or state
⚙️ Configuration
| Field | Description | Type / Options | 
|---|---|---|
| Label | Custom name for the action | String | 
| Document ID | The unique _idof the MongoDB document to retrieve | String | 
| Collection Name | Name of the MongoDB collection to search | String | 
| Select connection | Choose or create a MongoDB database connection | Connection | 
| Outputs – Truncate Fields | Toggle to truncate long field values in the output (optional) | Boolean | 
| Schema | Optional: Select a schema to validate and shape the output document | Schema | 
FAQ
Q: What happens if the document ID does not exist?
A: The action returns an empty result and the workflow continues without error.
Q: Can I use other fields besides Document ID to query?
A: The Get Action is designed specifically for retrieval by Document ID.
For flexible filtering use the Query Action.
Q: Can I validate the output?
A: Yes. Use the Schema option to ensure the fetched document matches your expected structure.
Keywords: WeHub MongoDB Plugin, MongoDB Get Action, Retrieve Document, NoSQL Workflow Automation