MongoDB QL

Description

The MongoDB QL action executes one or more JSON instructions from this action’s configuration or from a file.

This action can be used to execute administrative instructions on a Mongo Database.

You can execute more than one JSON instruction.

Any JSON Instruction that can be used inside MongoDB’s runCommand(), can be executed by this action.

Options

Option Description

Action name

The name of the workflow action.

MongoDB Connection

The MongoDB connection to use.

Use external file

Enable this option to load the JSON instructions from a file.

Filename

The filename for the file with JSON instructions.

Use variable substitution

Enables variables to be used in the Script.

JSON

The JSON instructions to execute. Multiple statements can be separated by comma.

Examples

Single instruction

{"create":"hop_collection"}

Multiple instructions

[
    {"create":"hop_collection"},
    {"drop": "hop_collection" }
]