Closed pandabytes closed 1 year ago
You can force nulls to be serialized by setting the SerializeNullValues
setting of the ExecutionConfiguration
, like this:
var client = new BoltGraphClient("neo4j://localhost:7687", "user", "pass");
client.ExecutionConfiguration.SerializeNullValues = true;
await client.ConnectAsync();
Describe the bug When using
WithParam
and a dictionary with null values, callingSet("n += $Param")
will not remove the properties that are null in the dictionary from the node. For the following code below, the propertyadopted
should be removed after the 2nd query is executedWhen I run the code above, this is the debug query text I get
The debug update query is correct because if I copy the update query text and run it directly in Neo4J, then the property
adopted
is removed. Also, specifying a literal dictionary forSet
works. For exampleVersions:
To Reproduce Steps to reproduce the behavior: See code snippet above.
Expected behaviour I expect all null properties that are in the dictionary will be removed from the Neo4j node (assuming those properties already exist on a node) when using
WithParam
. Here is what Neo4J doc states: