Welcome to the board.
You can inject to a function node, break it to separate messages, add the required msg.delay property to each (in ms) and send them all through a delay node.
You need to use a combination of SET and UPDATE:
- SET to define the initial value of your array;
- UPDATE to modify your array (add one element in your case)
Note: SET is not mandatory.
Note 2: I used a different node palette.
[{"id":"911c71c9a95abdf6","type":"firebase-out","z":"15cdbf1d258ebb57","name":"","database":"84eee9c0981a2d6d","path":"topic","pathType":"msg","priority":"1","queryType":"update","x":540,"y":220,"wires":[]},{"id":"e3bd4a2f71ebee63","type":"firebase-out","z":"15cdbf1d258ebb57","name":"","database":"84eee9c0981a2d6d","path":"topic","pathType":"msg","priority":"1","queryType":"set","x":530,"y":160,"wires":[]},{"id":"b58fe33c3117647f","type":"inject","z":"15cdbf1d258ebb57","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"test","payload":"[1,2,3]","payloadType":"json","x":340,"y":160,"wires":[["e3bd4a2f71ebee63"]]},{"id":"7fb70f0fca7bf9a0","type":"inject","z":"15cdbf1d258ebb57","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"test","payload":"{\"3\":4}","payloadType":"json","x":340,"y":220,"wires":[["911c71c9a95abdf6"]]},{"id":"592c2191c95cdb4a","type":"inject","z":"15cdbf1d258ebb57","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":330,"y":320,"wires":[["1b51026c6313bd49"]]},{"id":"1b51026c6313bd49","type":"firebase-get","z":"15cdbf1d258ebb57","name":"","constraints":{},"database":"84eee9c0981a2d6d","outputType":"auto","passThrough":false,"path":"test","pathType":"str","useConstraints":false,"x":490,"y":320,"wires":[["f5fe312f04f16740"]]},{"id":"f5fe312f04f16740","type":"debug","z":"15cdbf1d258ebb57","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":640,"y":320,"wires":[]},{"id":"84eee9c0981a2d6d","type":"firebase-config","name":"My Database","authType":"privateKey","claims":{},"createUser":false,"status":{"firestore":false,"storage":false},"useClaims":false},{"id":"84e1d75a7ed2c4e8","type":"global-config","env":[],"modules":{"@gogovega/node-red-contrib-firebase-realtime-database":"0.8.2","@gogovega/firebase-config-node":"0.3.4"}}]
I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
It might not answer your immediate question but it will help you understand the other suggestions here.


