I'm using a node-red-contrib-simpletime node which adds a series of objects to the message based on what options I have ticked. For example, I am adding msg.mydate, msg.mymonth, msg.myday and so on. There are 10 in total.
After this step the message heads to a join node where I need all objects to be under the msg.payload object otherwise they get lost when joining using key/value object.
Right now I have a change node moving each object to the payload one by one and I update it each time I activate or deactivate an option. For example, I move msg.mydate to msg.payload.mydate and so on (10 times over).
Can you do a move (as a single operation compared to a set & delete) in a function node? Can you do a move based on a wildcard e.g. move msg.my* to msg.payload.my*?
Thanks for the assist.