| Namespace | http://www.mulesoft.org/schema/mule/mongo |
|---|---|
| Schema Location | http://www.mulesoft.org/schema/mule/mongo/current/mule-mongo.xsd (View Schema) |
| Schema Version | 2.0 |
| Minimum Mule Version | 3.3 |
MongoDB is an open source, high-performance, schema-free, document-oriented database that manages collections of BSON documents.
| Configuration | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Configure an instance of this module
| |||||||||||
| Transformers | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Convert a BasicBSONList into Json.
| |||||||||||
Convert a DBObject into Map.
| |||||||||||
Convert DBObject to Json.
| |||||||||||
Convert JSON to DBObject.
| |||||||||||
Convert a BasicBSONList into Json.
| |||||||||||
| Message Processors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new user for this db
| |||||||||||
Counts the number of objects that match the given query.
| |||||||||||
Counts the number of objects that match the given query.
| |||||||||||
Creates a new collection.
| |||||||||||
Creates a new GridFSFile in the database, saving the given content, filename,
contentType, and extraData, and answers it.
| |||||||||||
Creates a new index
| |||||||||||
Deletes a collection and all the objects it contains.
| |||||||||||
Drop the current database
| |||||||||||
Drops an existing index
| |||||||||||
Executes a dump of the database to the specified output directory.
| |||||||||||
Executes a command on the database
| |||||||||||
Answers if a collection exists given its name
| |||||||||||
Lists all the files that match the given query
| |||||||||||
Lists all the files that match the given query
| |||||||||||
Finds all objects that match a given query.
| |||||||||||
Finds all objects that match a given query.
| |||||||||||
Answers the first file that matches the given query.
| |||||||||||
Answers the first file that matches the given query.
| |||||||||||
Finds the first object that matches a given query.
| |||||||||||
Finds the first object that matches a given query.
| |||||||||||
Answers an inputstream to the contents of the first file that matches the
given query.
| |||||||||||
Answers an inputstream to the contents of the first file that matches the
given queryAttributes.
| |||||||||||
Executes an incremental dump of the database
| |||||||||||
Inserts an object in a collection, setting its id if necessary.
| |||||||||||
Inserts an object in a collection, setting its id if necessary.
| |||||||||||
Lists names of collections available at this database
| |||||||||||
Lists all the files that match the given query, sorting them by filename.
| |||||||||||
Lists all the files that match the given query, sorting them by filename.
| |||||||||||
List existent indices in a collection
| |||||||||||
Transforms a collection into a collection of aggregated groups, by applying a
supplied element-mapping function to each element, that transforms each one
into a key-value pair, grouping the resulting pairs by key, and finally
reducing values in each group applying a suppling 'reduce' function.
| |||||||||||
Removes all the files that match the given query.
| |||||||||||
Removes all the files that match the given query.
| |||||||||||
Removes all the objects that match the a given optional query.
| |||||||||||
Removes all the objects that match the a given optional query.
| |||||||||||
Takes the output from the dump and restores it.
| |||||||||||
Inserts or updates an object based on its object _id.
| |||||||||||
Inserts or updates an object based on its object _id.
| |||||||||||
Updates objects that matches the given query.
| |||||||||||
Update objects using a mongo function
| |||||||||||
Update objects using a mongo function
| |||||||||||
Updates objects that matches the given query.
| |||||||||||
Updates objects that matches the given query.
| |||||||||||
To use the this module within a flow the namespace to the module must be included. The resulting flow will look similar to the following:
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mongo="http://www.mulesoft.org/schema/mule/mongo"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core
http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/mongo
http://www.mulesoft.org/schema/mule/mongo/current/mule-mongo.xsd">
<!-- here goes your flows and configuration elements -->
</mule>
This module is configured using the config element. This element must be placed outside of your flows and at the root of your Mule application. You can create as many configurations as you deem necessary as long as each carries its own name.
Each message processor, message source or transformer carries a config-ref attribute that allows the invoker to specify which configuration to use.
| Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Name | Default Value | Description | Java Type | MIME Type | Encoding | Optional. Give a name to this configuration so it can be later referenced. | ||||
| Optional. This controls whether the system retries automatically on connection errors. | |||||||||||
| 30000 | Optional. The connection timeout in milliseconds; this is for establishing the socket connections (open). | ||||||||||
| Optional. The number of connections allowed per host (the pool size, per host) | |||||||||||
| Optional. Sets the fsync value of WriteConcern for the connection. | |||||||||||
| localhost | Optional. The host of the Mongo server, it can also be a list of comma separated hosts for replicas | ||||||||||
| Optional. The max wait time for a blocking thread for a connection from the pool in ms. | |||||||||||
| 27017 | Optional. The port of the Mongo server | ||||||||||
| Optional. If the driver sends a getLastError command after every update to ensure it succeeded. | |||||||||||
| Optional. Specifies if the driver is allowed to read from secondaries or slaves. | |||||||||||
| Optional. The socket timeout. | |||||||||||
| Optional. Multiplier for connectionsPerHost for # of threads that can block | |||||||||||
| Optional. If set, the w value of WriteConcern for the connection is set to this. | |||||||||||
| Optional. If set, the wtimeout value of WriteConcern for the connection is set to this. | |||||||||||
This connector offers automatic connection management via the use of a connection pool. The pool will act a storage mechanism for all the connections that are in-use by the user of this connector.
Prior to execution of a processor, the connector will attempt to lookup an already established connection and if one doesn't exists it will create one. That lookup mechanism is done in the connection pool via the use of connection variables declared as keys.
The user of the connector can configure the pool by adding a connection-pooling-profile to the connector configuration like this:
<mongo:connection-pooling-profile maxActive="10" maxIdle="10"
exhaustedAction="WHEN_EXHAUSTED_GROW" maxWait="120" minEvictionMillis="60000" evictionCheckIntervalMillis="30000"/>
The following is a list of connection attributes, each connection attribute can be configured at the config element level or they can also be added to each processor. If they are used at the processor level they get the benefit of full expression resolution.
| Connection Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
| Optional. Specify which configuration to use. | |||||||||||
| The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. Name of the database | String | */* | UTF-8 | ||||||||
Reconnection Strategies specify how a connector behaves when its connection fails. You can control how Mule attempts to reconnect by specifying a number of criteria:
With a reconnection strategy, you can better control the behavior of a failed connection, by configuring it, for example, to re-attempt the connection only once every 15 minutes, and to give up after 30 attempts. You can also send an automatic notification to your IT administrator whenever this reconnection strategy goes into effect. You can even define a strategy that attempts to reconnect only during business hours. Such a setting can prove useful if your server is frequently shut down for nightly maintenance.
A reconnection strategy that allows the user to configure how many times a reconnection should be attempted and how long to wait between attempts.
<mongo:config>
<reconnect count="5" frequency="1000"/>
</mongo:config>
| Reconnect Attributes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Name | Default Value | Description | |||||||||
| Optional. How often (in ms) to reconnect | |||||||||||
| Optional. How many reconnection attempts to make | |||||||||||
For more information about reconnection strategies in Mule, or even how to write your own custom reconnection strategy please check this section.
Adds a new user for this db
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Name of the user | String | */* | UTF-8 | ||||||||
| Password that will be used for authentication | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Counts the number of objects that match the given query. If no query is passed, returns the number of elements in the collection
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The target collection | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. The optional DBObject query for counting objects. Only objects matching it will be counted. If unspecified, all objects are counted. | DBObject | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| long | the amount of objects that matches the query |
Counts the number of objects that match the given query. If no query is passed, returns the number of elements in the collection
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The target collection | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. The optional query for counting objects. Only objects matching it will be counted. If unspecified, all objects are counted. | Map<String, Object> |
| Return Type | Description |
|---|---|
| long | the amount of objects that matches the query |
Creates a new collection. If the collection already exists, a MongoException will be thrown.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection to create | String | */* | UTF-8 | ||||||||
| false | Optional. If the collection will be capped | boolean | */* | ||||||||
| Optional. The maximum number of documents the new collection is able to contain | Integer | */* | |||||||||
| Optional. The maximum size of the new collection | Integer | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Creates a new GridFSFile in the database, saving the given content, filename, contentType, and extraData, and answers it.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The mandatory content of the new gridfs file. It may be a java.io.File, a byte[] or an InputStream. | Object | */* | |||||||||
| The mandatory name of new file. | String | */* | UTF-8 | ||||||||
| Optional. The optional content type of the new file | String | */* | UTF-8 | ||||||||
| Optional. The optional DBObject metadata of the new content type | DBObject | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| DBObject | the new GridFSFile DBObject |
| Payload Class | Description |
|---|---|
| IOException | IOException |
Creates a new index
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection where the index will be created | String | */* | UTF-8 | ||||||||
| The name of the field which will be indexed | String | */* | UTF-8 | ||||||||
| ASC | Optional. The indexing order | IndexOrder | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Deletes a collection and all the objects it contains. If the collection does not exist, does nothing.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection to drop | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Drop the current database
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Drops an existing index
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection where the index is | String | */* | UTF-8 | ||||||||
| The name of the index to drop | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Executes a dump of the database to the specified output directory. If no output directory is provided then the default /dump directory is used.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| dump | Optional. Output directory path, if no output directory is provided the default /dump directory is assumed | String | */* | UTF-8 | |||||||
| Optional. Output file name, if it's not specified the database name is used | String | */* | UTF-8 | ||||||||
| false | Optional. Whether to zip the created dump file or not | boolean | */* | ||||||||
| false | Optional. Point in time backup (requires an oplog) | boolean | */* | ||||||||
| 5 | Optional. Amount of threads to execute the dump | int | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Payload Class | Description |
|---|---|
| IOException | if an error occurs during the dump |
Executes a command on the database
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The command to execute on the database | String | */* | UTF-8 | ||||||||
| Optional. The value for the command | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| DBObject | The result of the command |
Answers if a collection exists given its name
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| boolean | if the collection exists |
Lists all the files that match the given query
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. A DBObject query the optional query | DBObject | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| Iterable<DBObject> | a DBObject files iterable |
Lists all the files that match the given query
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. The optional query attributes | Map<String, Object> |
| Return Type | Description |
|---|---|
| Iterable<DBObject> | a DBObject files iterable |
Finds all objects that match a given query. If no query is specified, all objects of the collection are retrieved. If no fields object is specified, all fields are retrieved.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The target collection | String | */* | UTF-8 | ||||||||
| Optional. The optional DBObject query object. If unspecified, all documents are returned. | DBObject | */* | |||||||||
| Optional. Number of objects skip (offset) | Integer | */* | |||||||||
| Optional. Limit of objects to return | Integer | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. Alternative way of passing fields as a literal List | List<String> |
| Return Type | Description |
|---|---|
| Iterable<DBObject> | an iterable of DBObject |
Finds all objects that match a given query. If no query is specified, all objects of the collection are retrieved. If no fields object is specified, all fields are retrieved.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The target collection | String | */* | UTF-8 | ||||||||
| Optional. Number of objects skip (offset) | Integer | */* | |||||||||
| Optional. Limit of objects to return | Integer | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. The optional query object. If unspecified, all documents are returned. | Map<String, Object> | ||
| Optional. Alternative way of passing fields as a literal List | List<String> |
| Return Type | Description |
|---|---|
| Iterable<DBObject> | an iterable of DBObject |
Answers the first file that matches the given query. If no object matches it, a MongoException is thrown.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The DBObject mandatory query | DBObject | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| DBObject | a DBObject |
Answers the first file that matches the given query. If no object matches it, a MongoException is thrown.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The mandatory query | Map<String, Object> |
| Return Type | Description |
|---|---|
| DBObject | a DBObject |
Finds the first object that matches a given query. Throws a MongoException if no one matches the given query
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The target collection | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. The mandatory DBObject query object that the returned object matches. | DBObject | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. Alternative way of passing fields as a literal List | List<String> |
| Return Type | Description |
|---|---|
| DBObject | a non-null DBObject that matches the query. |
Finds the first object that matches a given query. Throws a MongoException if no one matches the given query
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The target collection | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The mandatory query object that the returned object matches. | Map<String, Object> | ||
| Optional. Alternative way of passing fields as a literal List | List<String> |
| Return Type | Description |
|---|---|
| DBObject | a non-null DBObject that matches the query. |
Answers an inputstream to the contents of the first file that matches the given query. If no object matches it, a MongoException is thrown.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. The DBObject mandatory query | DBObject | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| InputStream | an InputStream to the file contents |
Answers an inputstream to the contents of the first file that matches the given queryAttributes. If no object matches it, a MongoException is thrown.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The mandatory query attributes | Map<String, Object> |
| Return Type | Description |
|---|---|
| InputStream | an InputStream to the file contents |
Executes an incremental dump of the database
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| dump | Optional. Output directory path, if no output directory is provided the default /dump directory is assumed | String | */* | UTF-8 | |||||||
| Optional. File that keeps track of the last timestamp processed, if no file is provided one is created on the output directory | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Payload Class | Description |
|---|---|
| IOException | if an error occurs during the incremental dump |
Inserts an object in a collection, setting its id if necessary.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection where to insert the given object | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. A DBObject instance. | DBObject | */* | ||||||||
| DATABASE_DEFAULT | Optional. The optional write concern of insertion | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| String | the id that was just insterted |
Inserts an object in a collection, setting its id if necessary.
A shallow conversion into DBObject is performed - that is, no conversion is performed to its values.INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection where to insert the given object | String | */* | UTF-8 | ||||||||
| DATABASE_DEFAULT | Optional. The optional write concern of insertion | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. Alternative way of specifying the element as a literal Map inside a Mule Flow | Map<String, Object> |
| Return Type | Description |
|---|---|
| String | the id that was just insterted |
Lists names of collections available at this database
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| Collection<String> | the list of names of collections available at this database |
Lists all the files that match the given query, sorting them by filename. If no query is specified, all files are listed.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. The DBObject optional query | DBObject | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| Iterable<DBObject> | an iterable of DBObject |
Lists all the files that match the given query, sorting them by filename. If no query is specified, all files are listed.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. The optional query | Map<String, Object> |
| Return Type | Description |
|---|---|
| Iterable<DBObject> | an iterable of DBObject |
List existent indices in a collection
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| Collection<DBObject> | a collection of DBObject with indices information |
Transforms a collection into a collection of aggregated groups, by applying a supplied element-mapping function to each element, that transforms each one into a key-value pair, grouping the resulting pairs by key, and finally reducing values in each group applying a suppling 'reduce' function.
Each supplied function is coded in JavaScript. Note that the correct way of writing those functions may not be obvious; please consult MongoDB documentation for writing them.INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection to map and reduce | String | */* | UTF-8 | ||||||||
| A JavaScript encoded mapping function | String | */* | UTF-8 | ||||||||
| A JavaScript encoded reducing function | String | */* | UTF-8 | ||||||||
| Optional. The name of the output collection to write the results, replacing previous collection if existed, mandatory when results may be larger than 16MB. If outputCollection is unspecified, the computation is performed in-memory and not persisted. | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| Iterable<DBObject> | an iterable that retrieves the resulting collection of DBObject |
Removes all the files that match the given query. If no query is specified, all files are removed
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| #[payload] | Optional. The DBObject optional query | DBObject | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Removes all the files that match the given query. If no query is specified, all files are removed
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| Optional. The optional query | Map<String, Object> |
Removes all the objects that match the a given optional query. If query is not specified, all objects are removed. However, please notice that this is normally less performant that dropping the collection and creating it and its indices again
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The collection whose elements will be removed | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. The optional DBObject query object. Objects that match it will be removed. | DBObject | */* | ||||||||
| DATABASE_DEFAULT | Optional. The write concern used to remove the object | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Removes all the objects that match the a given optional query. If query is not specified, all objects are removed. However, please notice that this is normally less performant that dropping the collection and creating it and its indices again
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The collection whose elements will be removed | String | */* | UTF-8 | ||||||||
| DATABASE_DEFAULT | Optional. The write concern used to remove the object | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The query object. Objects that match it will be removed. | Map<String, Object> |
Takes the output from the dump and restores it. Indexes will be created on a restore. It only does inserts with the data to restore, if existing data is there, it will not be replaced.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| dump | Optional. Input path to the dump files, it can be a directory, a zip file or just a bson file | String | */* | UTF-8 | |||||||
| false | Optional. Whether to drop existing collections before restore | boolean | */* | ||||||||
| false | Optional. Replay oplog for point-in-time restore | boolean | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Payload Class | Description |
|---|---|
| IOException | if an error occurs during restore of the database |
Inserts or updates an object based on its object _id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The collection where to insert the object | String | */* | UTF-8 | ||||||||
| #[payload] | Optional. The mandatory DBObject object to insert. | DBObject | */* | ||||||||
| DATABASE_DEFAULT | Optional. The write concern used to persist the object | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Inserts or updates an object based on its object _id.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The collection where to insert the object | String | */* | UTF-8 | ||||||||
| DATABASE_DEFAULT | Optional. The write concern used to persist the object | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The mandatory object to insert. | Map<String, Object> |
Updates objects that matches the given query. If parameter multi is set to false, only the first document matching it will be updated. Otherwise, all the documents matching it will be updated.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection to update | String | */* | UTF-8 | ||||||||
| The DBObject query object used to detect the element to update. | DBObject | */* | |||||||||
| #[payload] | Optional. The DBObject mandatory object that will replace that one which matches the query. | DBObject | */* | ||||||||
| false | Optional. If the database should create the element if it does not exist | boolean | */* | ||||||||
| true | Optional. If all or just the first object matching the query will be updated | boolean | */* | ||||||||
| DATABASE_DEFAULT | Optional. The write concern used to update | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Update objects using a mongo function
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection to update | String | */* | UTF-8 | ||||||||
| The function used to execute the update | String | */* | UTF-8 | ||||||||
| The DBObject query object used to detect the element to update. | DBObject | */* | |||||||||
| The DBObject mandatory object that will replace that one which matches the query. | DBObject | */* | |||||||||
| false | Optional. If the database should create the element if it does not exist | boolean | */* | ||||||||
| true | Optional. If all or just the first object matching the query will be updated | boolean | */* | ||||||||
| DATABASE_DEFAULT | Optional. The write concern used to update | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
Update objects using a mongo function
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection to update | String | */* | UTF-8 | ||||||||
| The function used to execute the update | String | */* | UTF-8 | ||||||||
| false | Optional. If the database should create the element if it does not exist | boolean | */* | ||||||||
| true | Optional. If all or just the first object matching the query will be updated | boolean | */* | ||||||||
| DATABASE_DEFAULT | Optional. The write concern used to update | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The query object used to detect the element to update. | Map<String, Object> | ||
| The mandatory object that will replace that one which matches the query. | Map<String, Object> |
Updates objects that matches the given query. If parameter multi is set to false, only the first document matching it will be updated. Otherwise, all the documents matching it will be updated.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection to update | String | */* | UTF-8 | ||||||||
| false | Optional. If the database should create the element if it does not exist | boolean | */* | ||||||||
| true | Optional. If all or just the first object matching the query will be updated | boolean | */* | ||||||||
| DATABASE_DEFAULT | Optional. The write concern used to update | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The query object used to detect the element to update. | Map<String, Object> | ||
| The mandatory object that will replace that one which matches the query. | Map<String, Object> |
Updates objects that matches the given query. If parameter multi is set to false, only the first document matching it will be updated. Otherwise, all the documents matching it will be updated.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The name of the collection to update | String | */* | UTF-8 | ||||||||
| The DBObject mandatory object that will replace that one which matches the query. | DBObject | */* | |||||||||
| false | Optional. If the database should create the element if it does not exist | boolean | */* | ||||||||
| true | Optional. If all or just the first object matching the query will be updated | boolean | */* | ||||||||
| DATABASE_DEFAULT | Optional. The write concern used to update | WriteConcern | */* | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Name | Default Value | Description | Java Type |
|---|---|---|---|
| The query object used to detect the element to update. | Map<String, Object> |
Convert a BasicBSONList into Json.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The input for this transformer | BasicBSONList | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| String | the converted string representation |
Convert a DBObject into Map.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The input for this transformer | DBObject | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| Map | the converted Map representation |
Convert DBObject to Json.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The input for this transformer | DBObject | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| String | the converted string representation |
Convert JSON to DBObject.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The input for this transformer | String | */* | UTF-8 | ||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| DBObject | the converted DBObject |
Convert a BasicBSONList into Json.
INCLUDE_ERROR
| Name | Default Value | Description | Java Type | MIME Type | Encoding | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Optional. Specify which configuration to use. | |||||||||||
| The input for this transformer | MongoCollection | */* | |||||||||
| Connection Parameters This are only required if you didn't specified them at the configuration element. They are also useful for overriding the values of the configurations or even if you need to extract them from the Mule message since they support expression evaluation. | |||||||||||
| Optional. The username to use for authentication. NOTE: Please use a dummy user if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| Optional. The password to use for authentication. NOTE: Please use a dummy password if you have disabled Mongo authentication | String | */* | UTF-8 | ||||||||
| test | Optional. Name of the database | String | */* | UTF-8 | |||||||
| Return Type | Description |
|---|---|
| String | the converted string representation |