When I write a simple Cypher query like this:
MATCH (r:Person {name:'Jon'})
MATCH (s:Person {name:'Ana'})
CREATE UNIQUE (r)-[:FRIEND_OF]->(s)
I'm receiving an alert messsage in the Neo4j browser. The alert message says:
The RULE planner is not available in the current CYPHER version, the query has been run by an older CYPHER version. CREATE UNIQUE is unsupported for current CYPHER version, the query has been execute by an older CYPHER version
Here a print screen of the alert message:
I searched by this message in the Neo4j Github and did not find anything. Also the docs has no mention to any depreciation.
My question is: Is CREATE UNIQUE deprecated? Why?
I'm using Neo4j 3.2.1.
Thanks.
PS: I know my query can be refactoring. It is only an example. Also all refactoring made in the query using CREATE UNINQUE
show the same alert message in the Neo4j browser.
MATCH (r:Person {name:'Jon'}), (s:Person {name:'Ana'}) CREATE UNIQUE (r)-[:FRIEND_OF]->(s)
(aka get ride of the secondmatch
and replace with a,
) – John