user1889970
user1889970

Reputation: 736

Cypher syntax error

I am getting the following error while trying to execute Cypher from the Java API:

org.neo4j.cypher.SyntaxException: Invalid input ')': expected whitespace, comment, '.', node labels, '[', "=~", IN, IS, '*', '/', '%', '^', '+', '-', '<', '>', "<=", ">=", '=', "<>", "!=", AND, XOR, OR, ',' or '}' (line 1, column 46)

"MERGE (n:C3CASEID {id: {id} , title: {title} ) RETURN n"

Unable to locate the error.

Upvotes: 1

Views: 428

Answers (1)

user1889970
user1889970

Reputation: 736

Got it: missed the } bracket.so it should be

MERGE (n:C3CASEID {id: {id} , title: {title}} )
RETURN n;

Upvotes: 2

Related Questions