Running MongoDB Commands
You can issue MongoDB Commands using a Process Task and the Procedure.Mongo Run Command element.
In the example above, a Process Task has been defined that includes a Procedure.Mongo Run Command element and its attributes have been set to run the MongoDB "isMaster" command.
The Procedure.Mongo Run Command element's attributes include:
Attribute | Description |
---|---|
Connection ID | (Required) Specifies the ID of a Connection.MongoDB element in the application's _Settings definition. |
ID | (Required) A unique element ID. |
Mongo Run Command | Specifies a MongoDB command. Refer to the MongoDB Database Command documentation for a the complete list of commands. |
No results are returned when the command runs; however, an error that can be handled with the If Error element will be thrown if it fails.