Hi All,
I tried below query to add a new field(which is array) and then used array_put to add value to it.
But its not adding new field and adding value to it.
Update mydoc use keys ["123456789"] SET contact.activeEmails = ARRAY_PUT(IFNULL(contact.activeEmails,OBJECT_ADD(contact, 'activeEmails',[])),"childKey123") FOR contact in mydoc.contactInfo WHEN contact.roleId == "x" END
Thanks for your help
Narayan