I had not realized I was writing the values one at a time until you pointed that out. Thanks.
I removed the split node and started by first examining the output from the Influx 1.7 query. I can see it is an array with 21540 objects, with each object being:
payload[*].time
is the timestamp of the value
and
payload[*].last
is the value
(pardon the use of the *
...it is meant to indicate all of the 21540 values in the array)
And the Influx batch node format requires me to simply insert these two values here:
How does one convert this whole array so that the function node can take the values from payload.last and payload.time? I tried some JSONata expressions (in a change node, before the function node) but nothing worked.