Skip to main content

MongoDB

MongoDB Plugin – Add, Get, Patch, Query, Remove, Update​

Summary (SEO Meta Description):
The MongoDB Plugin in WeHub enables workflows to connect with MongoDB collections.
Actions include Add, Get, Patch, Query, Remove, and Update for managing JSON documents at scale.


Overview​

The MongoDB Plugin integrates workflows directly with MongoDB collections, enabling document-based operations.
It allows you to add, retrieve, update, patch, query, and remove documents in NoSQL databases as part of automated workflows.

Typical Use Cases:

  • Store workflow results as JSON documents in MongoDB
  • Query MongoDB for application or analytics data
  • Retrieve user profiles, orders, or events by key
  • Update existing documents without overwriting all fields
  • Remove expired or invalid documents automatically

Available Actions​

  • Add – Insert a new JSON document into a MongoDB collection.
  • Get – Retrieve a single document by its key.
  • Patch – Update part of a document without replacing the entire object.
  • Query – Run structured queries against a MongoDB collection.
  • Remove – Delete one or more documents from a collection.
  • Update – Replace or modify existing documents with new values.

FAQ​

Q: Does the MongoDB plugin support schema validation?
A: Yes. You can map workflow inputs against schemas to ensure valid document structure.

Q: What is the difference between Update and Patch?
A: Update replaces or modifies entire fields, while Patch applies partial updates to a document without overwriting unchanged fields.

Q: Can I query multiple documents at once?
A: Yes. The Query Action allows you to filter and return multiple documents matching your criteria.


Keywords: WeHub MongoDB Plugin, MongoDB Workflow Integration, MongoDB Add Document, MongoDB Query Automation, MongoDB Update Workflow