Action MongoDB
MongoDB Find
Queries documents from a MongoDB collection using a filter. Returns matching documents as a JSON array.
Node IDMongoDbFindAction
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. |
Filter (JSON) filter | textarea | No | — | MongoDB query filter as JSON object e.g. {"status": "active"}. Leave empty to return all documents. |
Require TLS require_tls | boolean | No | true | If true, requires a TLS/SSL connection to MongoDB. |
Limit limit | integer | No | 100 | Maximum number of documents to return. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | Execution signal. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
On Success output0 | object | result | Fires on successful query. Contains documents (JSON array) and count. |
On Error output1 | object | error | Fires on failure. Contains the error message. |