Skip to main content

MongoDB Node

What it does

Runs MongoDB operations (find/insert/update/delete/aggregate) using configured MongoDB credentials.

Inputs/config

  • Credential reference to MongoDB connection.
  • Database and collection names.
  • Operation type and operation payload/filter.

Outputs/branches

  • Uses matched_output.
  • success on operation completion.
  • error on query/connection/auth failures.

Example usage snippet

{
"id": "n_mongo",
"type": "mongodb_node",
"config": {
"operation": "findOne",
"database": "orders",
"collection": "requests",
"filter": { "id": "{{input.orderId}}" }
}
}

Common pitfalls

  • Using wrong database/collection names per environment.
  • Missing indexes leading to slow scans.
  • Logging full documents that contain sensitive fields.