# MongoDB not showing up in scripting

**URL:** <https://forum.inductiveautomation.com/t/mongodb-not-showing-up-in-scripting/88374>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [April 4, 2024, 7:35pm UTC](https://forum.inductiveautomation.com/t/mongodb-not-showing-up-in-scripting/88374 "2024-04-04T19:35:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_White](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Michael\_White](https://forum.inductiveautomation.com/u/Michael_White)\
**Post date:** [April 4, 2024, 7:35pm UTC](https://forum.inductiveautomation.com/t/mongodb-not-showing-up-in-scripting/88374/1 "2024-04-04T19:35:48Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 4, 2024, 7:37pm UTC](https://forum.inductiveautomation.com/t/mongodb-not-showing-up-in-scripting/88374/2 "2024-04-04T19:37:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Michael\_White](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@Michael\_White](https://forum.inductiveautomation.com/u/Michael_White)\
**Post date:** [April 4, 2024, 9:01pm UTC](https://forum.inductiveautomation.com/t/mongodb-not-showing-up-in-scripting/88374/3 "2024-04-04T21:01:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 4, 2024, 9:02pm UTC](https://forum.inductiveautomation.com/t/mongodb-not-showing-up-in-scripting/88374/4 "2024-04-04T21:02:07Z")

</div>

In the top right corner in the script library editor you can select an autocomplete hint scope.
