Currently, when we "diff" the input JSON (A) with the input item JSON (B), we only include fields and nested fields from B that are NOT in A.
This detects all nested field changes in B that might not be present in A, except for when you delete a field in A that is straight up not in B.
And considering that the objectDiff was meant to be used in UPDATE queries, I'm not sure what to do in case of A's field being removed by B...
Currently, when we "diff" the input JSON (A) with the input item JSON (B), we only include fields and nested fields from B that are NOT in A.
This detects all nested field changes in B that might not be present in A, except for when you delete a field in A that is straight up not in B.
And considering that the objectDiff was meant to be used in UPDATE queries, I'm not sure what to do in case of A's field being removed by B...