Passing on received message object #51
-
I have several situations in which the code that will process the result of a query also needs to use data from the message object that was consumed by the postgresql node. To handle that, I use junction nodes. Would it be possible passing on the content of the received object, along with the result of the query - perhaps using a check box in the configuration ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I am not sure of your exact use-case, but it is pretty standard for Node-RED nodes to use |
Beta Was this translation helpful? Give feedback.
I am not sure of your exact use-case, but it is pretty standard for Node-RED nodes to use
msg.payload
for the main input and output.If you need to persist some information, you can always put a copy in
msg.somethingElse
, which should be available even after passing through node-red-contrib-postgresql.