Action MongoDB
MongoDB Write
Writes to a MongoDB collection. Supports insertOne, updateOne, updateMany, deleteOne, deleteMany, and replaceOne operations.
Node IDMongoDbWriteAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Connection String Secret Key connection_string_secret_key | string | No | MONGODB_URL | Key in the Secrets store holding your MongoDB connection string. |
Database database | string | Yes | — | The MongoDB database name. |
Collection collection | string | Yes | — | The MongoDB collection name. |
Operation operation | enum | Yes | insertOne | The write operation to perform. |
Document (JSON) document | textarea | No | — | The document or update operator as JSON object. Required for insert, update, and replace operations. |
Require TLS require_tls | boolean | No | true | If true, requires a TLS/SSL connection to MongoDB. |
Filter (JSON) filter | textarea | No | — | Query filter as JSON object. Required for update, delete, and replace operations. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | Execution signal. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
On Success output0 | object | result | Fires on successful write. Contains operation and result details. |
On Error output1 | object | error | Fires on failure. Contains the error message. |