Hi @knolleary
Thanks for the swift reply. I actually tried that, but in the wrong folder 
Then I tried it again in the correct folder but did not restart NR. 
I was about to add an issue on Github but it says to mention the issue here or on Slack first. The way this query is formed probably doesn't help much - I will add more info here:
Refer to this commit: https://github.com/node-red/node-red-nodes/commit/14983c9722743369c11305cb79fdd1d96dd70ea6
My msg.attachments is formed like this in Jsonata: { "href":"https://drive.google.com/uc?export=download&id=" &req.params.fileid, "filename" : payload.filename }
It is not array so it fails to become sendopts.attachments.