Execute MongoDB Command (NoSQL)
Synopsis
Runs a user specified command on the MongoDB instance.Description
This operator can be used to execute arbitrary MongoDB commands. Commands are specified and results returned via JSON/BSON documents. For instance, the command {"create": "myCollection"} creates a new collection of the name "myCollection".
Input
- command
The database command to be executed (a JSON/BSON document). Alternatively, you can specify this document via the command parameter. Note that this parameter is only visible if no document is connected to the input port.
- connection (Connection)
This input port expects a Connection object if any. See the parameter connection entry for more information.
Output
- result
The document containing the results of the MongoDB database command.
- connection (Connection)
This output port delivers the Connection object from the input port. If the input port is not connected the port delivers nothing.
Parameters
- connection_source This parameter indicates how the connection should be specified. It gives you two options, predefined and repository. The parameter is not visible if the connection input port is connected. Range: selection
- connection_entry This parameter is only available when the connection source parameter is set to repository. This parameter is used to specify a repository location that represents a connection entry. The connection can also be provided using the connection input port. Range: string
- mongodb_instance This parameter is only available when the connection source parameter is set to predefined. The MongoDB instance to be used to run the command can be specified here. Range: Configurable
- command The database command to be executed (a JSON/BSON document). Alternatively, you can specify this document via the command input port. Range: String