I am using current version of neo4j, 
I am trying delete or update Node by graph id , when I try to delete passing as parameter for example name, it works normal, but I need delete with id one node with it is relation, and also update node.

```
String remove = "MATCH (n:Player {ID(n): {id} })-[r]-() DELETE n, r";
            ExecutionResult result = engine.execute(remove,
                   params); 

  and

 String query = "MERGE (n:Person {ID(n): {id}}) ON CREATE SET n.name={name}, n.surname={surname}, n.position={position} ON MATCH SET";

            ExecutionResult result = engine.execute(query,
                    params);

```

Always I am getting errors like

Invalid input '(': expected an identifier character, whitespace, ':' or '}' (line 1, column 20)
"MERGE (n:Person {ID(n): {id}}) ON CREATE SET n.name={name}, n.surname={surname}, n.position={position} ON MATCH SET"

or

Invalid input '(': expected an identifier character, whitespace, ':' or '}' (line 1, column 20)
"MATCH (n:Player {ID(n): {id} })-[r]-() DELETE n, r"

Usually I am used Spring data neo4j and did not find this type of errors.

Anyone have answers?

Thanks