One is in mutateNode. The logic for special location handling in the update path is wrong. It should match the logic in the create path, which is right.
The other is in handleUpdate when we are creating the apoc for copying old param values to the ENTERED_BY link. There, the JSON.stringify on the location object does not create something we can compare to. Need to check latitude and longitude separately.
There are two unrelated problem areas.
One is in mutateNode. The logic for special location handling in the update path is wrong. It should match the logic in the create path, which is right.
The other is in handleUpdate when we are creating the apoc for copying old param values to the ENTERED_BY link. There, the JSON.stringify on the location object does not create something we can compare to. Need to check latitude and longitude separately.