# Is there a way to externalize mongodb connection info

**URL:** <https://discourse.nodered.org/t/is-there-a-way-to-externalize-mongodb-connection-info/15012>\
**Category:** General\
**Created:** [1 September 2019 21:41 UTC](https://discourse.nodered.org/t/is-there-a-way-to-externalize-mongodb-connection-info/15012 "2019-09-01T21:41:28Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [27 December 2019 08:43 UTC](https://discourse.nodered.org/t/is-there-a-way-to-externalize-mongodb-connection-info/15012/9 "2019-12-27T08:43:22Z")

</div>

@lenny1972 please use backticks (`) rather than stars to highlight code. As you can see in your post, some of the code is unreadable.

Can you share exactly how you have configured the Change node?

You don't need to edit `functionGlobalContext` to expose process.env these days. In the function node you can use `env.get("test")`.

---

_[View the full topic](https://discourse.nodered.org/t/is-there-a-way-to-externalize-mongodb-connection-info/15012)._
