I’ve following neo4j query
match (u:users {id: $id) set u.isOnline = null
It gives update summary for properties set value as 1 for first time and when i re-run the query again it gives 0 for the same value.
But when i run this query
match (u:users {id:$id}) set u.token = $token
It always gives me the update summary for property set value is 1 regardless of how many time i ran this query
>Solution :
yes, that’s what neo4j behaviour so you must aware of this when working with null values
When updating null neo4j pre check if value exists like node exists, but it not gonna check for string or an other type of values like array
so you always get true for string update even for same value