I installed the MongoDB Cloud Connector module in our docker image, just like the other modules we've installed.
COPY modules/MongoDB-Connector-module.modl /usr/local/bin/ignition/user-lib/modules/mongodb.modl
And once started, I enabled it in the gateway settings. This persists across container recreate.
I can see the MongoDB option as a binding in perspective, however, I don't see system.mongo
in any scripts. How can I get mongo to show up in the scripting engine as well?
Where are you trying to author these scripts? The mongodb functions are gateway scoped only, so they won't show up in the script console, if that's what you're using to test.
Yes in the script console, but also just in the scripting library of one of our projects, in a script called mongo
.
I can call them, because I know this function is only called from the gateway message handler, so I would like for autocomplete to work on them.
In the top right corner in the script library editor you can select an autocomplete hint scope.
2 Likes