You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below example updating as expected, Each item in the array contains both the content and done keys in its changes property.
awaitMessages.table.bulkUpdate([{"key": "ffce6291-2fdf-4103-9960-1b208da10222","changes": {"content": "Hello!","done": false}},{"key": "ffce6291-2fdf-4103-9960-1b208da10222","changes": {"content": "Hello! How","done": false}},{"key": "ffce6291-2fdf-4103-9960-1b208da10222","changes": {"content": "Hello! How can I","done": false}},{"key": "ffce6291-2fdf-4103-9960-1b208da10222","changes": {"content": "Hello! How can I assist","done": false}}])
However, the code below only updates the last item in the array, which only updates { done: true }, causing the content changes in the other array items to be missing.
[{"key": "ffce6291-2fdf-4103-9960-1b208da10222","changes": {"content": "Hello! How can I assist you","done": false}},{"key": "ffce6291-2fdf-4103-9960-1b208da10222","changes": {"content": "Hello! How can I assist you today","done": false}},{"key": "ffce6291-2fdf-4103-9960-1b208da10222","changes": {"content": "Hello! How can I assist you today?","done": false}},{"key": "ffce6291-2fdf-4103-9960-1b208da10222","changes": {"done": true}}]
Is the behavior of updateBulk intentional when passing in array items with the same key?"
The text was updated successfully, but these errors were encountered:
Below example updating as expected, Each item in the array contains both the
content
anddone
keys in itschanges
property.However, the code below only updates the last item in the array, which only updates
{ done: true }
, causing thecontent
changes in the other array items to be missing.Is the behavior of
updateBulk
intentional when passing in array items with the same key?"The text was updated successfully, but these errors were encountered: