Direct Database Query + Update Variable to add property to object

So I am using a direct database query as a fallback to a Query All Records. Each of these return an array of objects. After either of those steps are hit, I'm adding a new property, distance, to each item in the array. When I do this to the variable from the Query All Records, everything works great and the property is added to each item. However, when I do this to the Direct Database Query, it replaces the entire object with the new property I am adding.

The code and the structure of the array of objects is identical in both cases as is shown in the debugger. Is this a bug?

3 replies