Closed kukeiko closed 2 years ago
whoops, found another example where merging is not working as expected:
{ price: [100, 200], rating: [3, 5] }
merged with
{ price: [0, 300], rating: [0, 10] }
should be
{ price: [0, 300], rating: [0, 10] }
,
but currently is
({ price: [100, 200], rating: [3, 5] } | { price: [0, 300], rating: [0, 10] })
found another case that is not working:
({ price: [100, 200], rating: [3, 5] } | { price: [100, 300], rating: [5, 7] })
merged with
{ price: [0, 1000], rating: [0, 8] }
should be
{ price: [0, 1000], rating: [0, 8] }
but currently is
(({ price: [100, 200], rating: [3, 5] } | { price: [100, 300], rating: [5, 7] }) | { price: [0, 1000], rating: [0, 8] })
{ price: [100, 200], rating: [3, 5] }
{ price: [300, 500], rating: [3, 5] }
=> cached query is now
{ price: [300, 500], rating: [3, 5] }
, when it should be({ price: [100, 200], rating: [3, 5] } | { price: [300, 500], rating: [3, 5] })