Imagine that two nodes, (:USER {name: "John"})
and (:AGE {name: "28"})
, exist. Now, the following query is ok with Neo4j
MATCH (u:USER {name: "John"})
MATCH (a:AGE {name: "28"})
MERGE (u)-[:IS]->(a)
and creates the IS
relationship between the two nodes. When the same query is run on Redis Graph, I get the following error:
Syntax error at offset 22 near 'MERGE'
. Does anyone know how to run the same query on Redis Graph?
I should add that CREATE
does not work instead of MERGE
since it will create a duplicate of an (possibly) already existing edge.