# mulesoft MongoDB Connector - Full Documentation
---
product: MongoDB Connector
version: 6.3
---
# MongoDB Connector 6.3
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Anypoint Connector for MongoDB (MongoDB Connector) is a closed-source connector that provides a
connection between the Mule runtime engine (Mule) and third-party software on a MongoDB server.
Release Notes:
[MongoDB Connector Release Notes](https://docs.mulesoft.com/release-notes/connector/mongodb-connector-release-notes-mule-4)
Exchange:
[MongoDB Connector](https://www.mulesoft.com/exchange/com.mulesoft.connectors/mule-mongodb-connector/)
## Before You Begin
To use this connector, you must be familiar with MongoDB, Mule runtime engine (Mule), Anypoint
Connectors, Anypoint Studio, elements in a Mule flow, and global elements.
Before creating an app, you must have access to the MongoDB target resource and Anypoint Platform.
You must also understand how to create a Mule app using Anypoint Studio.
To use the this connector, you need:
- A MongoDB instance
- A set of valid credentials, including the required MongoDB endpoints that point to your instance
## Common Use Cases for the Connector
Common use cases for MongoDB Connector include:
- **Single View of Data**
Create a single view of your most important data and aggregate your siloed data from multiple
enterprise systems, transform the data, and write the data to MongoDB. For example, you can import
data into a CSV format from a local directory into MongoDB.
- **Mainframe Offloading**
Mirror or synchronize your operational data from mainframes into MongoDB to offload workloads from
your mainframes while enabling the ability to meet your customer where they are.
- **Real-time Analytics**
Leverage MongoDB’s rich query language to make real-time decisions on shipping, inventory, and
pricing, and analyze any data using documents in MongoDB.
- **Personalization**
Create personalized omnichannel retail experiences by collecting and synchronizing data across
your retail channels and your backend systems into MongoDB.
For examples of these use cases, refer to [MongoDB Connector Examples](https://docs.mulesoft.com/mongodb-connector/6.3/mongodb-connector-examples).
## Authentication
This connector does not validate all possible authentication types.
## Exchange Example
[Anypoint Exchange](https://www.mulesoft.com/exchange/org.mule.examples/importing-a-CSV-file-into-Mongo-DB/)
has an example that shows how to import data in a CSV format from a local directory into MongoDB.
## Important Date Handling Considerations
When using MongoDB Connector, consider the following date-handling behavior:
- **Automatic conversion to UTC**
MongoDB Connector converts dates (whether sent to or retrieved from MongoDB) to UTC before storage
for consistent date handling in distributed environments.
- **ISO 8601 format**
Dates (whether they are sent to or retrieved from MongoDB) in JSON documents are transformed to
the ISO 8601 format. Additionally, any String values in JSON documents that match the ISO 8601
format are automatically transformed and stored as Date types in MongoDB. This change ensures more
consistent and standardized date handling in a distributed environment.
- **Millisecond truncation**
Dates (whether sent to or retrieved from MongoDB) that include milliseconds with a value of `.000`
are not shown in connector output.
Here is an example of date handling in a Mule app:
Input:
```json
{
"timeStamp": "2024-06-17T16:44:17.000+01:00"
}
```
Mule 4:
```json
{
"timeStamp": "2024-06-17T15:44:17+00:00"
}
```
Because of these changes in date handling, it is important to:
- **Review flows involving dates**
If your Mule apps rely on specific timezones of dates stored in MongoDB, you must review and
possibly adjust flows to correctly handle the UTC conversion.
- **Test thoroughly**
Conduct thorough testing in a controlled environment to ensure that the changes in date handling
do not negatively impact the expected behavior of the Mule app.
- **Document the behavioral differences**
Review these date-handling details to ensure correct behavior in your application.
## Next Steps
After you complete the prerequisites and experiment with the example, you are ready to create an app
with [Studio](https://docs.mulesoft.com/mongodb-connector/6.3/mongodb-connector-studio).
## See Also
- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/intro-use-exchange)
- [Salesforce Help](https://help.salesforce.com)
---
product: MongoDB Connector
version: 6.3
---
# MongoDB Connector 6.3 Examples
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
## Invoke an Operation
To invoke a simple operation, such as the **Insert Document** operation, follow these steps:
1. In Studio, click **HTTP** and drag the **Listener** operation to the canvas.
2. From the palette, select **MongoDB** and drag the Insert Document operation into your flow by
placing it to the right of **HTTP Listener**.
3. Configure the connector by selecting the **Connector Configuration** you created in the previous
section, choosing the operation to invoke, and setting the **Collection name**.
4. From the palette, drag the **Transform Message** component to the left of MongoDB Connector.
5. Click **Transform Message** and enter two key-value pairs:
```dataweave
%dw 2.0
%output application/json
---
{
name:"Peter",
age:"42"
}
```
6. From the Mule Palette view, drag other **Transform Message** components to the right of MongoDB
Connector.
7. Click **Transform Message** and set the output to `application/json`:
```dataweave
%dw 2.0
output application/json
---
payload
```
### XML for Invoke an Operation
```xml
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Name | String | Name for this configuration. Connectors reference the configuration with this name. | x | |
Connection | Connection types for this configuration. | x | ||
Read Concern | Enumeration, one of:
| Enables you to control the consistency and isolation properties of the data read from replica sets and replica set shards. | ||
Read Preference | Enumeration, one of:
| Specifies the read preferences for this connection. |
| |
Maximum Staleness Seconds | Number | Specifies, in seconds, how stale a secondary node on a MongoDB cluster is before the client stops using the secondary node for read operations. |
| |
Read Preference Tags | Array of Read Preference Tag | If replica set members are associated with tags, you can specify a tag set (array of tag specification documents) in the read preference to target those members. | ||
Encoding | String | Specifies the encoding to use in the connector. If unspecified, the default for Mule is used. | ||
Expiration Policy | Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. | |||
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
|
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Servers (host:port) | Array of Server Address | Server in which your MongoDB instance is located. You can specify multiple servers. | x | |
Database | String | Database name to which you want to connect. | x | |
Username | String | Username to use for authentication. | ||
Password | String | Password to use for authentication. If you do not want to use authentication, the password and the username must both be empty. | ||
Replica Set Name | String | Name of the replica set to which to connect. Use this field to connect to a MongoDB cluster. | ||
Authentication Source | String | Authentication source. | ||
Compressors | Array of String | List of compressors to enable network compression for communication between the client and a mongod or mongos instance. If you specify multiple compressors, then the order in which you list the compressors matters. The driver uses the first compressor in the list. | ||
Zlib Compression Level | Number | Integer that specifies the compression level if using zlib for network compression. |
| |
Connection Timeout | Number | How long the connector waits before timing out when establishing a connection to the remote service. |
| |
Connection Timeout Timeunit | Enumeration, one of:
| Time unit for the Connection Timeout field. |
| |
Local Threshold | Number | Size of the latency window for selecting among multiple suitable MongoDB instances. |
| |
Local Threshold Time Unit | Enumeration, one of:
| Time unit for the Local Threshold field. |
| |
Server Selection Timeout | Number | How long to block for server selection before throwing an exception. |
| |
Server Selection Timeout Time Unit | Enumeration, one of:
| Time unit for the Server Selection Timeout field. |
| |
Socket Timeout | Number | Socket timeout. Used for I/O socket read and write operations. Set this field to | ||
Socket Timeout Unit | Enumeration, one of:
| Time unit for the Socket Timeout field. |
| |
Retry Writes | Boolean | Enable retryable writes. |
| |
Authentication Mechanism | Enumeration, one of:
| Authentication mechanism used for this connection. | ||
Tls Context | Configures TLS. If using the HTTPS protocol, you must configure TLS. | |||
Min Connection Pool Size | Number | Minimum size for the connection pool. | ||
Max Connection Pool Size | Number | Maximum size for the connection pool. |
| |
Max Wait Queue Time | Number | Maximum wait queue time for the connection pool. |
| |
Max Wait Queue Time Unit | Enumeration, one of:
| Time unit for the Max Wait Queue Time field. |
| |
Max Connection Life Time | Number | Maximum connection lifetime for the connection pool. | ||
Max Connection Life Time Unit | Enumeration, one of:
| Time unit for the Max Connection Life Time field. |
| |
Max Connection Idle Time | Number | Maximum connection idle time for the connection pool. | ||
Max Connection Idle Time Unit | Enumeration, one of:
| Time unit for the Max Connection Idle Time field. |
| |
Reconnection | Configures a reconnection strategy to use when a connector operation fails to connect to an external server. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Connection String | String | URI that describes the hosts to use and their options. | x | |
Tls Context | Configures TLS. If using the HTTPS protocol, you must configure TLS. | |||
Reconnection | Configures a reconnection strategy to use when a connector operation fails to connect to an external server. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Collection that is watched to detect the matching documents. | x | |
Watermark Field | String | Field that is queried to detect the objects that match the trigger condition. | x | |
Primary Node Only | Boolean | Determines whether to execute this source on only the primary node when running Mule instances in a cluster. | ||
Scheduling Strategy | scheduling-strategy | Configures the scheduler that triggers the polling. | x | |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Redelivery Policy | Defines a policy for processing the redelivery of the same message. | |||
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Username | String | Name of the user. | x | |
Password | String | Password to use for authentication. | x | |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection. | x | |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Boolean |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Target collection. | x | |
Query | Binary | Query for counting documents. Only documents matching the query are counted. If unspecified, all documents are counted. Values can be | ||
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Number |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to create. | x | |
Max Objects | Number | Maximum number of documents the new collection contains. | ||
Collection Size | Number | Maximum size of the new collection. | ||
Collection Size Data Unit | Enumeration, one of:
| Data unit of the Collection Size field. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Content | Binary | Content of the new file. This content is an InputStream. |
| x |
Filename | String | Name of the new file. | x | |
Metadata | Binary | JSON object that holds information to store. | ||
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection in which the index is created. | x | |
Field Name | String | Name of the field that is indexed. | x | |
Sort Order | Enumeration, one of:
| Indexing order. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | String |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to drop. | x | |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Database Name | String | Name of the database to drop. | x | |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection. | x | |
Index Name | String | Name of the index to drop. | x | |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Output Directory | String | Output directory in which dump files are created. | x | |
Output Name Prefix | String | Output file name prefix. If unspecified, the database name is used. | ||
Oplog | Boolean | Point in time backup (requires an oplog). |
| |
Operation Timeout | Number | Maximum wait time for the dump. |
| |
Operation Timeout Unit | Enumeration, one of:
| Time unit for the Operation Timeout field. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of String |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Command | Binary | Command to execute on the database as a document. |
| |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Query | Binary | Query for finding documents. If unspecified, all documents are retrieved. Values can be | ||
Sort By | Binary | Indicates the document used to sort the results. Use | ||
Page Size | Number | Size of the documents of each page to return. |
| |
Limit | Number | Limit of the documents to return. | ||
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Collection Name | String | Collection name. | x | |
Fields | String | Comma-separated list of fields to return from each document. To return all fields, type a single comma character. | x | |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Query | Binary | Query for listing all files. Values can be | ||
Sort | Binary | Enables you to sort the result list. A file is sorted by file ID or upload date. | ||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
File Id | Binary | Mandatory file ID. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Any |
Attributes Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection in which to insert the given document. | x | |
Document | Binary | Document to insert. |
| |
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection in which to insert the given document. | x | |
Documents | Binary | List of the documents to insert. |
| |
Write Ordered | Boolean | Indicates whether the list of documents are executed in order. If set to |
| |
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of String |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection. | x | |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of Index |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to map and reduce. | x | |
Mapping Function | String | JavaScript-encoded mapping function. | x | |
Reduce Function | String | JavaScript-encoded reducing function. | x | |
Output Collection | String | Name of the output collection to which to write the results. This replaces an existing collection, if any exists. This field is mandatory if the resulting objects are larger than 16 MB. If Output Collection is unspecified, the computation is performed in-memory and is not persisted. | ||
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Collection for which to remove elements. | x | |
Query | Binary | Query for detecting the elements to delete. Values can be | ||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Number |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
File Id | Binary | ID of the file to delete. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Input Path | String | Input path of the dump files. This path must be a directory. | x | |
Drop Collections | Boolean | Indicates whether to drop existing collections before performing the restore. |
| |
Oplog Replay | Boolean | Replay oplog used for point-in-time restore. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to restore. | x | |
Input | Binary | InputStream that points to the dump file. It can be a .bson file or a zip file. |
| |
Drop Collection | Boolean | Indicates whether to drop existing collections before performing the restore. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to update. | x | |
Query | Binary | Query for detecting the element to update. Values can be | ||
Content To Update | Binary | Object to replace the document that matches the query. |
| |
Multiple Update | Boolean | Indicates whether only the first document matching the query is updated. |
| |
Upsert | Boolean | If set to |
| |
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Any |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Exception | Any | Exception. | ||
Id | Any | ID. | ||
Message | String | Message. | ||
Payload | Binary | Payload. | ||
Status Code | String | Status code. | ||
Successful | Boolean | Indicates success. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Id | Any | ID. | ||
Items | Array of Bulk Item | Array of items. | ||
Successful | Boolean | Indicates success. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Path | String | Path to the CRL file. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Url | String | URL of the OCSP responder. | ||
Cert Alias | String | Alias of the signing certificate for the OCSP response. If specified, the alias must be in the truststore. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Max Idle Time | Number | Configures the maximum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. | ||
Time Unit | Enumeration, one of:
| Time unit for the Max Idle Time field. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Field Name | String | Field name. | ||
Name | String | Name of the index. | ||
Order | Enumeration, one of:
| Order of the index. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Path | String | Path to the keystore. Mule resolves the path relative to the current classpath and file system. | ||
Type | String | Type of keystore. | ||
Alias | String | Alias of the key to use when the keystore contains multiple private keys. By default, Mule uses the first key in the file. | ||
Key Password | String | Password used to protect the private key. | ||
Password | String | Password used to protect the keystore. | ||
Algorithm | String | Encryption algorithm that the keystore uses. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Name Value | Object | Name value. | x |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Frequency | Number | How often to attempt to reconnect, in milliseconds. | ||
Blocking | Boolean | If | ||
Count | Number | How many reconnection attempts the Mule app can make. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Frequency | Number | How often to attempt to reconnect, in milliseconds. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Fails Deployment | Boolean | What to do if, when an app is deployed, a connectivity test does not pass after exhausting the associated reconnection strategy:
| ||
Reconnection Strategy | Reconnection strategy to use. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Max Redelivery Count | Number | Maximum number of times that a redelivered request can be processed unsuccessfully before returning a | ||
Message Digest Algorithm | String | Secure hashing algorithm to use if the Use Secure Hash field is | ||
Id Expression | String | One or more expressions that determine if a message is redelivered. This property can be set only if the Use Secure Hash field is | ||
Object Store | ObjectStore | Configures the object store that stores the redelivery counter for each message. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
In Memory Objects | Number | Maximum amount of instances to keep in memory. If more than that is required, content on the disk is buffered. | ||
Buffer Unit | Enumeration, one of:
| Unit for the In Memory Size field. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
In Memory Size | Number | Maximum amount of memory that the stream can use for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance:
| ||
Buffer Unit | Enumeration, one of:
| Unit for the In Memory Size field. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Initial Buffer Size | Number | Amount of instances to initially keep in memory to consume the stream and provide random access to it. If the stream contains more data than can fit into this buffer, then the buffer expands according to the Buffer Size Increment attribute, with an upper limit of Max In Memory Size. Default value is 100 instances. | ||
Buffer Size Increment | Number | This is by how much the buffer size expands if it exceeds its initial size. Setting a value of | ||
Max Buffer Size | Number | Maximum amount of memory to use. If more than that is used, a |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Initial Buffer Size | Number | Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by Buffer Size Increment, with an upper limit of Max In Memory Size value. | ||
Buffer Size Increment | Number | Amount by which the buffer size expands if it exceeds its initial size. Setting a value of | ||
Max Buffer Size | Number | The maximum amount of memory to use. If more than that is used then a | ||
Buffer Unit | Enumeration, one of:
| Unit for the Initial Buffer Size, Buffer Size Increment, and Buffer Unit fields. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Host | String | Host to which you want to connect. | x | |
Port | Number | Port of the host to which you want to connect. |
|
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Only End Entities | Boolean | Which elements to verify in the certificate chain:
| ||
Prefer Crls | Boolean | How to check certificate validity:
| ||
No Fallback | Boolean | Whether to use the secondary method to check certificate validity:
| ||
Soft Fail | Boolean | What to do if the revocation server can’t be reached or is busy:
|
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Enabled Protocols | String | Comma-separated list of protocols enabled for this context. | ||
Enabled Cipher Suites | String | Comma-separated list of cipher suites enabled for this context. | ||
Trust Store | Configures the TLS truststore. | |||
Key Store | Configures the TLS keystore. | |||
Revocation Check | Configures a revocation checking mechanism. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Path | String | Path to the truststore. Mule resolves the path relative to the current classpath and file system. | ||
Password | String | Password used to protect the truststore. | ||
Type | String | Type of truststore. | ||
Algorithm | String | Encryption algorithm that the truststore uses. | ||
Insecure | Boolean | If |
| Property | Default | Description |
|---|---|---|
|
| When set to |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Name | String | Name for this configuration. Connectors reference the configuration with this name. | x | |
Connection | Connection types for this configuration. | x | ||
Read Concern | Enumeration, one of:
| Enables you to control the consistency and isolation properties of the data read from replica sets and replica set shards. | ||
Read Preference | Enumeration, one of:
| Specifies the read preferences for this connection. |
| |
Maximum Staleness Seconds | Number | Specifies, in seconds, how stale a secondary node on a MongoDB cluster is before the client stops using the secondary node for read operations. |
| |
Read Preference Tags | Array of Read Preference Tag | If replica set members are associated with tags, you can specify a tag set (array of tag specification documents) in the read preference to target those members. | ||
Encoding | String | Specifies the encoding to use in the connector. If unspecified, the default for Mule is used. | ||
Expiration Policy | Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. | |||
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
|
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Servers (host:port) | Array of Server Address | Server in which your MongoDB instance is located. You can specify multiple servers. | x | |
Database | String | Database name to which you want to connect. | x | |
Username | String | Username to use for authentication. | ||
Password | String | Password to use for authentication. If you do not want to use authentication, the password and the username must both be empty. | ||
Replica Set Name | String | Name of the replica set to which to connect. Use this field to connect to a MongoDB cluster. | ||
Authentication Source | String | Authentication source. | ||
Compressors | Array of String | List of compressors to enable network compression for communication between the client and a mongod or mongos instance. If you specify multiple compressors, then the order in which you list the compressors matters. The driver uses the first compressor in the list. | ||
Zlib Compression Level | Number | Integer that specifies the compression level if using zlib for network compression. |
| |
Connection Timeout | Number | How long the connector waits before timing out when establishing a connection to the remote service. |
| |
Connection Timeout Timeunit | Enumeration, one of:
| Time unit for the Connection Timeout field. |
| |
Local Threshold | Number | Size of the latency window for selecting among multiple suitable MongoDB instances. |
| |
Local Threshold Time Unit | Enumeration, one of:
| Time unit for the Local Threshold field. |
| |
Server Selection Timeout | Number | How long to block for server selection before throwing an exception. |
| |
Server Selection Timeout Time Unit | Enumeration, one of:
| Time unit for the Server Selection Timeout field. |
| |
Socket Timeout | Number | Socket timeout. Used for I/O socket read and write operations. Set this field to | ||
Socket Timeout Unit | Enumeration, one of:
| Time unit for the Socket Timeout field. |
| |
Retry Writes | Boolean | Enable retryable writes. |
| |
Authentication Mechanism | Enumeration, one of:
| Authentication mechanism used for this connection. | ||
Tls Context | Configures TLS. If using the HTTPS protocol, you must configure TLS. | |||
Min Connection Pool Size | Number | Minimum size for the connection pool. | ||
Max Connection Pool Size | Number | Maximum size for the connection pool. |
| |
Max Wait Queue Time | Number | Maximum wait queue time for the connection pool. |
| |
Max Wait Queue Time Unit | Enumeration, one of:
| Time unit for the Max Wait Queue Time field. |
| |
Max Connection Life Time | Number | Maximum connection lifetime for the connection pool. | ||
Max Connection Life Time Unit | Enumeration, one of:
| Time unit for the Max Connection Life Time field. |
| |
Max Connection Idle Time | Number | Maximum connection idle time for the connection pool. | ||
Max Connection Idle Time Unit | Enumeration, one of:
| Time unit for the Max Connection Idle Time field. |
| |
Reconnection | Configures a reconnection strategy to use when a connector operation fails to connect to an external server. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Connection String | String | URI that describes the hosts to use and their options. | x | |
Tls Context | Configures TLS. If using the HTTPS protocol, you must configure TLS. | |||
Reconnection | Configures a reconnection strategy to use when a connector operation fails to connect to an external server. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Servers (host:port) | Array of Server Address | Server in which your MongoDB instance is located. You can specify multiple servers. | x | |
Username | String | Username to use for authentication. | ||
Database | String | Database name to which you want to connect. |
| |
Audience | String | Optional OAuth 2.0 audience parameter that some identity providers, such as Auth0, require. The connector sends this value in the form-encoded request body to the token endpoint. | ||
Custom Token Request Parameters | Object | Additional form-encoded parameters that the connector appends to the OAuth token POST body. Use this field for identity-provider-specific fields beyond the RFC standards (for example, Microsoft Entra v1 | ||
Include Accept Header | Boolean | When |
| |
Client Authentication | Enumeration, one of:
| Determines how the connector presents client credentials to the token endpoint, per RFC 6749 §2.3.1. |
| |
Allow Invalid Hostnames | Boolean | Disables TLS hostname verification on the MongoDB connection only. Set this field to |
| |
Direct Connection | Boolean | Connects directly to the configured server address without performing replica-set or topology discovery. Set this field to |
| |
Token Endpoint Proxy | Optional HTTP proxy through which the connector routes the OAuth token requests to the identity provider. This proxy does not affect the MongoDB connection itself. | |||
Tls Context | Configures TLS. If using the HTTPS protocol, you must configure TLS. | |||
Client ID | String | OAuth 2.0 client identifier that the identity provider issues. | x | |
Client Secret | String | OAuth 2.0 client secret that the identity provider issues. | x | |
Token URL | String | Token endpoint URL of the identity provider. | x | |
Scopes | String | Space-separated OAuth 2.0 scopes to request from the identity provider. | ||
Connection Timeout | Number | How long the connector waits before timing out when establishing the socket connection. |
| |
Connection Timeout Timeunit | Enumeration, one of:
| Time unit for the Connection Timeout field. |
| |
Socket Timeout | Number | Socket timeout that the connector uses for I/O socket read and write operations. Set this field to | ||
Socket Timeout Unit | Enumeration, one of:
| Time unit for the Socket Timeout field. |
| |
Server Selection Timeout | Number | How long to block for server selection before throwing an exception. |
| |
Server Selection Timeout Time Unit | Enumeration, one of:
| Time unit for the Server Selection Timeout field. |
| |
Reconnection | Configures a reconnection strategy to use when a connector operation fails to connect to an external server. | |||
Min Connection Pool Size | Number | Minimum size for the connection pool. | ||
Max Connection Pool Size | Number | Maximum size for the connection pool. |
| |
Max Wait Queue Time | Number | Maximum wait queue time for the connection pool. |
| |
Max Wait Queue Time Unit | Enumeration, one of:
| Time unit for the Max Wait Queue Time field. |
| |
Max Connection Life Time | Number | Maximum connection lifetime for the connection pool. | ||
Max Connection Life Time Unit | Enumeration, one of:
| Time unit for the Max Connection Life Time field. |
| |
Max Connection Idle Time | Number | Maximum connection idle time for the connection pool. | ||
Max Connection Idle Time Unit | Enumeration, one of:
| Time unit for the Max Connection Idle Time field. |
| |
Token Refresh Skew | Number | Time that the connector subtracts from the OAuth |
| |
Token Refresh Skew Unit | Enumeration, one of:
| Time unit for the Token Refresh Skew field. |
| |
Token Request Timeout | Number | Maximum time that the connector allows the OAuth token POST to take. The connector sends this value as the connection-level timeout to the underlying HTTP client. If the identity provider does not respond within this window, the connector aborts the request and connection establishment fails. |
| |
Token Request Timeout Unit | Enumeration, one of:
| Time unit for the Token Request Timeout field. |
|
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Collection that is watched to detect the matching documents. | x | |
Watermark Field | String | Field that is queried to detect the objects that match the trigger condition. | x | |
Primary Node Only | Boolean | Determines whether to execute this source on only the primary node when running Mule instances in a cluster. | ||
Scheduling Strategy | scheduling-strategy | Configures the scheduler that triggers the polling. | x | |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Redelivery Policy | Defines a policy for processing the redelivery of the same message. | |||
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Username | String | Name of the user. | x | |
Password | String | Password to use for authentication. | x | |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection. | x | |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Boolean |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Target collection. | x | |
Query | Binary | Query for counting documents. Only documents matching the query are counted. If unspecified, all documents are counted. Values can be | ||
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Number |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to create. | x | |
Max Objects | Number | Maximum number of documents the new collection contains. | ||
Collection Size | Number | Maximum size of the new collection. | ||
Collection Size Data Unit | Enumeration, one of:
| Data unit of the Collection Size field. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Content | Binary | Content of the new file. This content is an InputStream. |
| x |
Filename | String | Name of the new file. | x | |
Metadata | Binary | JSON object that holds information to store. | ||
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection in which the index is created. | x | |
Field Name | String | Name of the field that is indexed. | x | |
Sort Order | Enumeration, one of:
| Indexing order. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | String |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to drop. | x | |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Database Name | String | Name of the database to drop. | x | |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection. | x | |
Index Name | String | Name of the index to drop. | x | |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Output Directory | String | Output directory in which dump files are created. | x | |
Output Name Prefix | String | Output file name prefix. If unspecified, the database name is used. | ||
Oplog | Boolean | Point in time backup (requires an oplog). |
| |
Operation Timeout | Number | Maximum wait time for the dump. |
| |
Operation Timeout Unit | Enumeration, one of:
| Time unit for the Operation Timeout field. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of String |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Command | Binary | Command to execute on the database as a document. |
| |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Query | Binary | Query for finding documents. If unspecified, all documents are retrieved. Values can be | ||
Sort By | Binary | Indicates the document used to sort the results. Use | ||
Page Size | Number | Size of the documents of each page to return. |
| |
Limit | Number | Limit of the documents to return. | ||
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Collection Name | String | Collection name. | x | |
Fields | String | Comma-separated list of fields to return from each document. To return all fields, type a single comma character. | x | |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Query | Binary | Query for listing all files. Values can be | ||
Sort | Binary | Enables you to sort the result list. A file is sorted by file ID or upload date. | ||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
File Id | Binary | Mandatory file ID. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Any |
Attributes Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection in which to insert the given document. | x | |
Document | Binary | Document to insert. |
| |
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection in which to insert the given document. | x | |
Documents | Binary | List of the documents to insert. |
| |
Write Ordered | Boolean | Indicates whether the list of documents are executed in order. If set to |
| |
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of String |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection. | x | |
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Array of Index |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to map and reduce. | x | |
Mapping Function | String | JavaScript-encoded mapping function. | x | |
Reduce Function | String | JavaScript-encoded reducing function. | x | |
Output Collection | String | Name of the output collection to which to write the results. This replaces an existing collection, if any exists. This field is mandatory if the resulting objects are larger than 16 MB. If Output Collection is unspecified, the computation is performed in-memory and is not persisted. | ||
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Binary |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Collection for which to remove elements. | x | |
Query | Binary | Query for detecting the elements to delete. Values can be | ||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Number |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
File Id | Binary | ID of the file to delete. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Input Path | String | Input path of the dump files. This path must be a directory. | x | |
Drop Collections | Boolean | Indicates whether to drop existing collections before performing the restore. |
| |
Oplog Replay | Boolean | Replay oplog used for point-in-time restore. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to restore. | x | |
Input | Binary | InputStream that points to the dump file. It can be a .bson file or a zip file. |
| |
Drop Collection | Boolean | Indicates whether to drop existing collections before performing the restore. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
| Name | Type | Description | Default Value | Required |
|---|---|---|---|---|
Configuration | String | Name of the configuration to use. | x | |
Collection Name | String | Name of the collection to update. | x | |
Query | Binary | Query for detecting the element to update. Values can be | ||
Content To Update | Binary | Object to replace the document that matches the query. |
| |
Multiple Update | Boolean | Indicates whether only the first document matching the query is updated. |
| |
Upsert | Boolean | If set to |
| |
Write Concern Acknowledgement | String | Level of acknowledgment requested from MongoDB for write operations propagated to the specified number of MongoDB instances. You can specify a number of instances, for example, | ||
Write Concern Timeout | Number | Specifies a time limit, in milliseconds, for Write Concern Acknowledgement. The value must be greater than | ||
Write Concern Timeout Timeunit | Enumeration, one of:
| Time unit for the Write Concern Timeout field. |
| |
Streaming Strategy | Configures how Mule processes streams. Repeatable streams are the default behavior. | |||
Target Variable | String | Name of the variable that stores the operation’s output. | ||
Target Value | String | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. |
| |
Reconnection Strategy | Retry strategy in case of connectivity errors. |
Type | Any |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Exception | Any | Exception. | ||
Id | Any | ID. | ||
Message | String | Message. | ||
Payload | Binary | Payload. | ||
Status Code | String | Status code. | ||
Successful | Boolean | Indicates success. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Id | Any | ID. | ||
Items | Array of Bulk Item | Array of items. | ||
Successful | Boolean | Indicates success. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Path | String | Path to the CRL file. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Url | String | URL of the OCSP responder. | ||
Cert Alias | String | Alias of the signing certificate for the OCSP response. If specified, the alias must be in the truststore. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Max Idle Time | Number | Configures the maximum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. | ||
Time Unit | Enumeration, one of:
| Time unit for the Max Idle Time field. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Field Name | String | Field name. | ||
Name | String | Name of the index. | ||
Order | Enumeration, one of:
| Order of the index. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Path | String | Path to the keystore. Mule resolves the path relative to the current classpath and file system. | ||
Type | String | Type of keystore. | ||
Alias | String | Alias of the key to use when the keystore contains multiple private keys. By default, Mule uses the first key in the file. | ||
Key Password | String | Password used to protect the private key. | ||
Password | String | Password used to protect the keystore. | ||
Algorithm | String | Encryption algorithm that the keystore uses. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Name Value | Object | Name value. | x |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Frequency | Number | How often to attempt to reconnect, in milliseconds. | ||
Blocking | Boolean | If | ||
Count | Number | How many reconnection attempts the Mule app can make. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Frequency | Number | How often to attempt to reconnect, in milliseconds. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Fails Deployment | Boolean | What to do if, when an app is deployed, a connectivity test does not pass after exhausting the associated reconnection strategy:
| ||
Reconnection Strategy | Reconnection strategy to use. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Max Redelivery Count | Number | Maximum number of times that a redelivered request can be processed unsuccessfully before returning a | ||
Message Digest Algorithm | String | Secure hashing algorithm to use if the Use Secure Hash field is | ||
Id Expression | String | One or more expressions that determine if a message is redelivered. This property can be set only if the Use Secure Hash field is | ||
Object Store | ObjectStore | Configures the object store that stores the redelivery counter for each message. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
In Memory Objects | Number | Maximum amount of instances to keep in memory. If more than that is required, content on the disk is buffered. | ||
Buffer Unit | Enumeration, one of:
| Unit for the In Memory Size field. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
In Memory Size | Number | Maximum amount of memory that the stream can use for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance:
| ||
Buffer Unit | Enumeration, one of:
| Unit for the In Memory Size field. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Initial Buffer Size | Number | Amount of instances to initially keep in memory to consume the stream and provide random access to it. If the stream contains more data than can fit into this buffer, then the buffer expands according to the Buffer Size Increment attribute, with an upper limit of Max In Memory Size. Default value is 100 instances. | ||
Buffer Size Increment | Number | This is by how much the buffer size expands if it exceeds its initial size. Setting a value of | ||
Max Buffer Size | Number | Maximum amount of memory to use. If more than that is used, a |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Initial Buffer Size | Number | Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by Buffer Size Increment, with an upper limit of Max In Memory Size value. | ||
Buffer Size Increment | Number | Amount by which the buffer size expands if it exceeds its initial size. Setting a value of | ||
Max Buffer Size | Number | The maximum amount of memory to use. If more than that is used then a | ||
Buffer Unit | Enumeration, one of:
| Unit for the Initial Buffer Size, Buffer Size Increment, and Buffer Unit fields. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Host | String | Host to which you want to connect. | x | |
Port | Number | Port of the host to which you want to connect. |
|
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Host | String | Hostname or IP address of the proxy server. | x | |
Port | Number | Port of the proxy server. | x | |
Username | String | Username to authenticate against the proxy server. | ||
Password | String | Password to authenticate against the proxy server. | ||
Non Proxy Hosts | String | Comma-separated list of hosts that the connector must not route through the proxy. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Only End Entities | Boolean | Which elements to verify in the certificate chain:
| ||
Prefer Crls | Boolean | How to check certificate validity:
| ||
No Fallback | Boolean | Whether to use the secondary method to check certificate validity:
| ||
Soft Fail | Boolean | What to do if the revocation server can’t be reached or is busy:
|
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Enabled Protocols | String | Comma-separated list of protocols enabled for this context. | ||
Enabled Cipher Suites | String | Comma-separated list of cipher suites enabled for this context. | ||
Trust Store | Configures the TLS truststore. | |||
Key Store | Configures the TLS keystore. | |||
Revocation Check | Configures a revocation checking mechanism. |
| Field | Type | Description | Default Value | Required |
|---|---|---|---|---|
Path | String | Path to the truststore. Mule resolves the path relative to the current classpath and file system. | ||
Password | String | Password used to protect the truststore. | ||
Type | String | Type of truststore. | ||
Algorithm | String | Encryption algorithm that the truststore uses. | ||
Insecure | Boolean | If |
| Property | Default | Description |
|---|---|---|
|
| When set to |
| From Version | To Version |
|---|---|
5.3.x | 6.x.x |
| MongoDB 5.x Operation | Changes in MongoDB 6.0 |
|---|---|
Count documents | Input parameters are now:
Return type is now Long with the count result. |
Create Collection | Input parameters are now:
|
Exists collection | Operation is now called Collection exists. |
Create file from payload |
|
Create index | Input parameters are now:
|
Dump | Input parameters are now:
Return type is now a List<String> type that points to the created files. Each string is a filePath type. |
Execute command |
|
Find documents | Input parameters are now:
This operation supports pagination. Each item returned as a JSON type. |
Find files |
|
Get file content |
|
Insert document | Return type is now an entire JSON object with the |
Insert documents | Return type is now a Bulk Operation Result, which contains a JSON file that lists each created record and its status. |
List collections | Return type is now a List<String> type that contains the names of the collections. |
List indices | Operation is now called List indexes. |
Map reduce objects |
|
Remove documents |
|
Remove files | Input parameter is now |
Update documents |
|
| Operation Name | Input Metadata | Output Metadata |
|---|---|---|
Insert Document | Document | Resolved dynamically based on the selected value of the collection parameter. The connector adds the latest document of the given collection and uses the document’s structure as input/output metadata. |
Insert Documents | Document | Resolved dynamically based on the selected value of the collection parameter. The connector adds the latest document of the given collection and uses the document’s structure as input/output metadata. |
Update Documents | Not applicable | JSON that contains the following structure:
|
Remove Documents | Query: JSON Object | Not applicable |
Count Documents | Query: JSON Object | Not applicable |
Find Documents | Query: JSON Object | Resolved dynamically based on the selected value of the collection parameter. The connector uses the structure of the last document in the given collection. |
Create File | Not applicable | A JSON object with the following attributes:
|
Find Files | Not applicable | List of JSON objects with the following attributes:
|
| Removed from MongoDB 5.x | Can be reproduced in MongoDB 6.0.0 through | ||
|---|---|---|---|
Name | Description | Name | Description |
Incremental dump | Executes an incremental dump of the database | Dump | Use the Dump operation. |
Restore | Takes the output from the dump and restores it | Restore from file or Restore from directory | Restore from file or Restore from directory take the output from the dump file or directory and restore it. |
Update documents by function | Update documents using a Mongo function | Not applicable | Not applicable |
Update documents by functions | Update documents using one or more Mongo functions | Not applicable | Not applicable |
Find one and update document | Finds and updates the first document that matches a given query | Not applicable | This operation’s functionality can be reproduced by combining other operations. For example, you can invoke the Find documents operation with a limit of 1 document. Then you can invoke the Update documents operation using the ID of the document returned previously. |
Save document | Inserts or updates a document based on its object ID | Not applicable | Not applicable |
Find one document | Finds the first document that matches a given query | Find documents | Set the Limit=1 to return one document. |
Execute generic command | Executes a generic command on the database | Execute command | Executes a command on the database |
List files | Lists all files that match the given query and sorts them by filename | Not applicable | Not applicable |
Find one file | Returns the first file that matches the given query | Find files | Specify a specific file to query |
| Input Metadata | Output Metadata |
|---|---|
Not applicable | The connector resolves output metadata dynamically based on the selected value of the Collection Name parameter. The connector reads the last document of the given collection and uses the document’s structure as output metadata. |
| Software | Version |
|---|---|
Mule | 4.1.1 and later |
MongoDB | MongoDB Java driver 3.11 and later |
| From Version | To Version |
|---|---|
5.3.x | 6.x.x |
| MongoDB 5.x Operation | Changes in MongoDB 6.0 |
|---|---|
Count documents | Input parameters are now:
Return type is now Long with the count result. |
Create Collection | Input parameters are now:
|
Exists collection | Operation is now called Collection exists. |
Create file from payload |
|
Create index | Input parameters are now:
|
Dump | Input parameters are now:
Return type is now a List<String> type that points to the created files. Each string is a filePath type. |
Execute command |
|
Find documents | Input parameters are now:
This operation supports pagination. Each item returned as a JSON type. |
Find files |
|
Get file content |
|
Insert document | Return type is now an entire JSON object with the |
Insert documents | Return type is now a Bulk Operation Result, which contains a JSON file that lists each created record and its status. |
List collections | Return type is now a List<String> type that contains the names of the collections. |
List indices | Operation is now called List indexes. |
Map reduce objects |
|
Remove documents |
|
Remove files | Input parameter is now |
Update documents |
|
| Operation Name | Input Metadata | Output Metadata |
|---|---|---|
Insert Document | Document | Resolved dynamically based on the selected value of the collection parameter. The connector adds the latest document of the given collection and uses the document’s structure as input/output metadata. |
Insert Documents | Document | Resolved dynamically based on the selected value of the collection parameter. The connector adds the latest document of the given collection and uses the document’s structure as input/output metadata. |
Update Documents | Not applicable | JSON that contains the following structure:
|
Remove Documents | Query: JSON Object | Not applicable |
Count Documents | Query: JSON Object | Not applicable |
Find Documents | Query: JSON Object | Resolved dynamically based on the selected value of the collection parameter. The connector uses the structure of the last document in the given collection. |
Create File | Not applicable | A JSON object with the following attributes:
|
Find Files | Not applicable | List of JSON objects with the following attributes:
|
| Removed from MongoDB 5.x | Can be reproduced in MongoDB 6.0.0 through | ||
|---|---|---|---|
Name | Description | Name | Description |
Incremental dump | Executes an incremental dump of the database | Dump | Use the Dump operation. |
Restore | Takes the output from the dump and restores it | Restore from file or Restore from directory | Restore from file or Restore from directory take the output from the dump file or directory and restore it. |
Update documents by function | Update documents using a Mongo function | Not applicable | Not applicable |
Update documents by functions | Update documents using one or more Mongo functions | Not applicable | Not applicable |
Find one and update document | Finds and updates the first document that matches a given query | Not applicable | This operation’s functionality can be reproduced by combining other operations. For example, you can invoke the Find documents operation with a limit of 1 document. Then you can invoke the Update documents operation using the ID of the document returned previously. |
Save document | Inserts or updates a document based on its object ID | Not applicable | Not applicable |
Find one document | Finds the first document that matches a given query | Find documents | Set the Limit=1 to return one document. |
Execute generic command | Executes a generic command on the database | Execute command | Executes a command on the database |
List files | Lists all files that match the given query and sorts them by filename | Not applicable | Not applicable |
Find one file | Returns the first file that matches the given query | Find files | Specify a specific file to query |
| Input Metadata | Output Metadata |
|---|---|
Not applicable | The connector resolves output metadata dynamically based on the selected value of the Collection Name parameter. The connector reads the last document of the given collection and uses the document’s structure as output metadata. |
| Software | Version |
|---|---|
Mule | 4.1.1 and later |
MongoDB | MongoDB Java driver 3.11 and later |