Push new items to an array

Hi guys,

I am new in Retool and No-Code development and i am currently blocked by something :slight_smile:
I want to add new objects from the result of an api Call 'DeliverOrder.data', to a mongodb existing array "LinkedDocuments" that contains existing values.

I am trying with $each inside a $push action .. but i am failing.

Thanks for your help.

Hey @BigTonio!

Happy to help here! After taking a closer look at your query here with my team, it looks like the JSON object in your Update field might be missing a curly-bracket right after the "LinkedDocuments" key, but before the "$each" key. That missing curly bracket would account for the "The value given - \`${value}\` must be valid JSON." error message. Hope this helps, let me know if you have any questions! :slight_smile:

Ho god !! Thanks Chris for your help, it is working with the good syntax. Happy to see i was so "close" :wink: