#[SOLVED] Update Array String not work

3 messages · Page 1 of 1 (latest)

drowsy jetty
#

Hello, I have an field type array string where I store the ids of the child documents. The problem is that more than one item cannot be added, when I update the document adding the other id it is not saved in the cloud. I am sending the data through REST API in the image you can see the straws attribute with 3 ids but only the first one is saved in the cloud

grim ice
#

How are you updating the document?
Can you share the request

drowsy jetty
#

@grim ice haha I was about to send you and I found the error I was sending the **documentId **field when inserting and updating the document when it should only be used when inserting. For this reason the update was not saved, my mistake. But for some reason it didn't give me an error.