# MongoDB - Workflow trigger | Docs - nodulz

Source: https://nodulz.com/docs/nodes/mongodb_trigger

Language: en

Starts the workflow when a MongoDB collection changes (change stream)

## Usage and specifics

Change streams require a replica set or a compatible cluster. A standalone MongoDB instance is insufficient. Select a collection and events before publishing.

Technical type : `mongodb_trigger`. Runtime : `nodulz`.

## Credentials and prerequisites

- [Create and configure the credential : mongodb](/docs/credentials/mongodb)

Create credentials in your nodulz instance’s Credentials area, then select them on the node. Availability depends on ownership and sharing. See the [credentials guide](/docs/credentials) for access and rotation.

## Parameters

Names below are technical keys. Defaults are not a ready-to-run configuration: complete fields required by your operation. Paths containing [] describe list items; some fields depend on the selected mode.

| Parameter | Type | Default | Values / limits |
| --- | --- | --- | --- |
| `credentialId` | `string` | `""` | - |
| `collection` | `string` | `""` | - |
| `events` | `array` | `["insert"]` | - |
| `testPayload` | `string` | `""` | - |

## Configuration help

| Setting | Purpose and guidance |
| --- | --- |
| `credentialId`<br>MongoDB credential | Choose a saved MongoDB credential. |
| `collection`<br>Collection | Name of the collection to use. |
| `events`<br>Events | Choose the changes that start the workflow. |

## Initial configuration

Initial catalog configuration example, to adapt before running. Keep secrets in credentials.

```json
{
  "credentialId": "",
  "collection": "",
  "events": [
    "insert"
  ],
  "testPayload": ""
}
```

## Verification

Test with representative data. Check node output in the inspector and logs, then use editor mapping for downstream fields. A trigger test with a simulated payload does not validate external service delivery.

See also : [Expressions and data](/docs/expressions), [Executions](/docs/executions), [Node catalog](/docs/nodes).

## Explore further

- [Features - nodulz](https://nodulz.com/product/overview)
- [Node catalog - nodulz](https://nodulz.com/product/catalog)
- [MCP server - nodulz](https://nodulz.com/product/mcp)
- [Pricing - nodulz](https://nodulz.com/pricing)
- [Use cases and workflow automation - nodulz](https://nodulz.com/use-cases)
- [Choose what your workflows can do. - nodulz](https://nodulz.com/compare)
- [Documentation - nodulz](https://nodulz.com/docs)
