node-red-nodes icon indicating copy to clipboard operation
node-red-nodes copied to clipboard

dynamic database name

Open man-of-fox opened this issue 4 years ago • 1 comments

Feature: database name can be dynamicaly provided as string oder context variable on "mongo in" and "mongo out"

  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)

Proposed changes

missing feature to provide database name optionaly as context variable for example to use req.headers.host (without port) as database name. With that you can use same application with diferent data backends definded by query parameter, post data or in my case with domain name.

Checklist

  • [ ] I have read the contribution guidelines
  • [ ] For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • [ ] I have run grunt to verify the unit tests pass
  • [ ] I have added suitable unit tests to cover the new/changed functionality

man-of-fox avatar May 19 '21 12:05 man-of-fox

Do you have a link to where this change was discussed (Slack or Forum)?

hardillb avatar May 19 '21 13:05 hardillb