I've implemented a new functionality for "function" node for configuring a single pair of credentials and make them available for use in function's code. It's based on already available credentials framework for node development, really a simple patch.
What's your opinion, will this be a valuable addition and should I open a PR for it?
@dpslavov a screenshot might help demonstrate what you are proposing.
In general, we have various other ways to make credentials available to a node. For example, you can add an env var at the Group, Subflow or Flow level that is stored as a credential:
Node's credentials implementation isn't well suited for multiple records. Of course it isn't impossible to to implement such thing but I preferred clean implementation and easy of use over functionality.
Yes, I'm aware that several InfluxDB contrib nodes do exists.