-
Notifications
You must be signed in to change notification settings - Fork 147
Error when creating new node
Yuvaraj edited this page Jul 21, 2023
·
4 revisions
I am creating a new node using C#, I used the following code.
await _boltGraphClient.Cypher.Merge("(memory:Memory { Id: {id} })") .OnCreate() .Set("memory = {newMemory}") .WithParams(new { id = newMemory.Id, newMemory }).ExecuteWithoutResultsAsync();
But I get error
Neo4j.Driver.ClientException: Invalid input '{': expected "+" or "-" (line 1, column 28 (offset: 27)) "MERGE (memory:Memory { Id: {id} })"