Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3.0, 1.4.0
Description
At the moment, if trying to use the update record to update the elements of an array it won't have any effect.
Input:
{ "numbers" : [ 1, null, 4 ] }
Parameters:
Path | Value | Expected output |
---|---|---|
/numbers[*] | 8 | "numbers" : [ 8, 8, 8 ] |
/numbers[1] | 8 | "numbers" : [ 1, 8, 4 ] |
/numbers[0..1] | 8 | "numbers" : [ 8, 8, 4 ] |
/numbers[0,2] | 8 | "numbers" : [ 8, null, 8 ] |
When elements of the array are records, it's possible to update fields of the record but not the record itself as-is.
Also in the MultiArrayIndexPath implementation, index of array elements is not correctly provided. Because of that, wrong elements of the array could be updated.
Attachments
Issue Links
- links to