Skip to main content

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​

FieldDescriptionType / Options
LabelCustom name for the actionString
Document IDThe unique _id of the MongoDB document to retrieveString
Collection NameName of the MongoDB collection to searchString
Select connectionChoose or create a MongoDB database connectionConnection
Outputs – Truncate FieldsToggle to truncate long field values in the output (optional)Boolean
SchemaOptional: Select a schema to validate and shape the output documentSchema

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