Skip to main content
Jeremias Meister - Tools & Pipeline

Action MongoDB

MongoDB Aggregate

Runs an aggregation pipeline on a MongoDB collection. Returns the pipeline results as a JSON array.

Node IDMongoDbAggregateAction

Parameters

ParameterTypeRequiredDefaultDescription
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.
Require TLS require_tls boolean No true If true, requires a TLS/SSL connection to MongoDB.
Pipeline (JSON Array) pipeline textarea Yes — MongoDB aggregation pipeline as a JSON array, e.g. [{"$match": {"status": "active"}}, {"$count": "total"}].

Inputs

InputTypeRequiredDescription
Execute input0 object Yes Execution signal.

Outputs

OutputTypeIdentifierDescription
On Success output0 object result Fires on successful aggregation. Contains results (JSON array) and count.
On Error output1 object error Fires on failure. Contains the error message.