I'm using "node-red-contrib-postgresql 0.9.0" to change data with a PostgresSQL database.
To use variables in my query it's necessary to use {{{msg.payload.VARIABLE}}}, and it's working fine. But when i tried to use {{{global.get("VARIABLE")}}} this not work.
Can anyone help me telling the right syntax to use global variables in my case?
In my case, i need to read the column "modelo_turno" from the table "usuario".
The query camp is working like that:
SELECT modelo_turno
FROM {{{msg.payload.schema}}}.usuario
The schema will be a string variable, because of that i am using a function node before the PostgresSQL node to read a string from a global variable and write it on the msg.payload to use in my query.
Would simplify my program if i use the global variable directly, instead of using the function all time.
You could raise a request on the issues page of that node asking if the author would support accessing {{{flow.var}}} and {{{global.var}}} in the node.