MongoDB
Document database operations for BizFirst workflows — insert, query, update, delete, and aggregate documents across any MongoDB collection. Manage Atlas Search indexes without leaving your workflow.
Authentication
All MongoDB operations share a single connection string. The connection string encodes the host, credentials, and optional target database in one value:
| Property | Type | Description |
|---|---|---|
ConnectionUri | credential | Full MongoDB connection string including username, password, and cluster host. Example: mongodb+srv://appuser:s3cr3t@cluster0.abc12.mongodb.net/. Store in BizFirst Credentials Manager — never hard-code in workflow expressions. Reference via {{ $credentials.mongodbAtlas }}. |
Database | string | The target database name within the cluster. Specified per-operation so the same credential can reach multiple databases in the same workflow. |
Collection | string | The target collection within the database. MongoDB creates the collection on first write if it does not already exist. |
searchindex/list, searchindex/create, searchindex/update, and searchindex/drop operations use the Atlas Search Index Management API and are not available on self-hosted MongoDB or MongoDB Community Edition. Your Atlas cluster must be M10 tier or above — shared-tier M0, M2, and M5 clusters do not support programmatic Atlas Search index management.
document/insert 20400
Insert one or more documents into a collection. Supports ordered and unordered bulk writes. Returns inserted IDs for all successful documents.
document/find 20401
Query a collection with a filter, sort, projection, and limit. Returns a document array suitable for passing directly to a Loop node.
document/findOneAndUpdate 20402
Atomically find the first matching document and apply update operators. Optionally upsert and return the document before or after the update.
document/findOneAndReplace 20403
Atomically find the first matching document and replace it entirely with a new document. Supports upsert and return-new-document modes.
document/update 20404
Apply update operators to one or all matching documents. Use UpdateMany: false to limit to the first match, or UpdateMany: true (default) to update every match.
document/delete 20405
Delete one or all documents matching a filter. Returns the count of deleted documents. Irreversible — use with a carefully scoped query filter.
document/aggregate 20406
Execute a full MongoDB Aggregation Pipeline. Supports $match, $group, $lookup, $unwind, $project, and all other pipeline stages including Atlas $search.
searchindex/list 20407
List all Atlas Search indexes defined on a collection. Returns index names, statuses, and their full definition objects.
searchindex/create 20408
Create a new Atlas Search index with a custom field mapping definition. The index builds asynchronously after creation.
searchindex/update 20409
Replace the definition of an existing Atlas Search index. The index rebuilds automatically after the update completes.
searchindex/drop 20410
Permanently delete an Atlas Search index by name. The underlying collection data is unaffected. Irreversible.