# Node-red-node-mongodb should use a database-Parameter on "mongo in" and "mongo out"

**URL:** <https://discourse.nodered.org/t/node-red-node-mongodb-should-use-a-database-parameter-on-mongo-in-and-mongo-out/45921>\
**Category:** Feature Requests\
**Created:** [19 May 2021 13:17 UTC](https://discourse.nodered.org/t/node-red-node-mongodb-should-use-a-database-parameter-on-mongo-in-and-mongo-out/45921 "2021-05-19T13:17:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![man-of-fox](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/man-of-fox/32/42039_2.png) [@man-of-fox](https://discourse.nodered.org/u/man-of-fox)\
**Post date:** [19 May 2021 13:17 UTC](https://discourse.nodered.org/t/node-red-node-mongodb-should-use-a-database-parameter-on-mongo-in-and-mongo-out/45921/1 "2021-05-19T13:17:40Z")

</div>

On my Project I need to get destination database from http-request. For example I get the req.headers.host withoud port as database name. So the same Application can use different data on different domains.  
For that I modified Version 0.2.5 to implement that. This working implementation I commited on github [Merge 10a2aa610ebb24d4a29723c9c5b5252f1d02d39a into bb6491942ea3b1acc… · node-red/node-red-nodes@939b659 · GitHub](https://github.com/node-red/node-red-nodes/commit/939b6597616594270fd47681e0819ad3fbfb08d7)

What du you mean, should this be pulled to master or sould I change or extend something?

---

<div class="post-metadata">

**Author:** ![man-of-fox](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/man-of-fox/32/42039_2.png) [@man-of-fox](https://discourse.nodered.org/u/man-of-fox)\
**Post date:** [19 May 2021 13:35 UTC](https://discourse.nodered.org/t/node-red-node-mongodb-should-use-a-database-parameter-on-mongo-in-and-mongo-out/45921/2 "2021-05-19T13:35:33Z")

</div>

By that way, are there other changes I should implement to that small module?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 July 2021 13:36 UTC](https://discourse.nodered.org/t/node-red-node-mongodb-should-use-a-database-parameter-on-mongo-in-and-mongo-out/45921/3 "2021-07-18T13:36:08Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
