Download JSON from a MongoDB server.

Parameters:

Parameters:
The MongoDB Read action connects to a MongoDB database and retrieves JSON documents from the selected collection.
It supports both find and aggregate query modes, enabling flexible data extraction from MongoDB into your ETL pipeline.
This action uses the unified connection system through Pipeline Parameters → Services, allowing centralized management of database credentials and secure authentication using secrets.
Use MongoDB Read to:
Before using this action, you must create a MongoDB connection in the Pipeline parameters → Services tab.
Open the Pipeline parameters window and select the Services tab.
Click the Add button to create a new connection entry.
In the Driver dropdown, select MongoDB.
Fill in the connection fields:
mongo_conn).27017.
For security, passwords can reference secrets defined in the Definitions tab.
This allows you to store credentials safely and reuse them without exposing sensitive information.
Example:
In Definitions → Secrets, add:
secret_0 = MySecurePassword
In the Password field of your MongoDB service, type secret_0 instead of the real password.
Connections defined inside a pipeline override any connections defined in Sources → Services.
If two definitions share the same name, the last defined one takes precedence.
Tip:
This makes it easy to reuse global configurations while allowing specific pipelines to override credentials or connection parameters locally.
find queryRetrieves all documents where price is greater than 100:
{ "price": { "$gt": 100 } }
Counts the total number of documents per category:
[
{ "$group": { "_id": "$category", "count": { "$sum": 1 } } }
]
{ "region": "EU", "active": true }
find or aggregate.The MongoDB Read action provides a reliable and secure way to extract JSON data from MongoDB databases.
It supports centralized connection management, secret-based authentication, and both direct document queries and aggregation pipelines.
This makes it ideal for integrating MongoDB data with other ETL sources in a unified workflow.