MongoDB properties
MongoDB connection
Select MongoDB in the list and configure the connection.
Configuration
Select your engine from the list and set the main and advanced settings.
Property | Configuration |
---|---|
Address type | Select the address type in the list:
|
Host and Port | Enter the IP address and listening port of the database server. If you have selected the Replica set option, you have the possibility to add multiple addresses. |
Database | Enter the name of the MongoDB database. |
Authentication | Toggle the Need auth option ON to enable the
database authentication:
|
Property | Configuration |
---|---|
Connection parameter | Add your custom MongoDB connection parameters if needed. |
After configuring the connection, give it a display name (mandatory) and a description (optional).
MongoDB dataset
Property | Configuration | |
---|---|---|
Dataset name | Enter a display name for the dataset. This name will be used as a unique identifier of the dataset in all Talend Cloud apps. | |
Connection | Select your connection in the list. If you are creating a dataset based on an existing connection, this field is read-only. | |
Type | Select the way you want to retrieve the data from your MongoDB database collection: either by naming the collection or by querying it. |
Property | Configuration |
---|---|
Collection | Enter the name of the collection in the MongoDB database. |
Mode | Select the data format in the list. |
Query |
Specify the query condition. This field is available only when you have selected Collection query from the Type list. For example, type in "{id:4}" to retrieve the record whose id is 4 from the database collection. |
Additional JDBC parameters might be displayed depending on whether the connector is used as a source or destination dataset, read the JDBC parameters section to know more about these parameters.