CYPHER
Cypher는 찾을 그래프 모양을 그대로 쓴다
괄호는 노드, 화살표는 관계를 나타내며, 패턴 매칭으로 경로를 읽는다.
MATCHWHERERETURN
MATCH (u:User {id: 1001})-[:BOUGHT]->(p:Product)
WHERE p.category = "book"
RETURN p.title, p.price
ORDER BY p.price DESC
CYPHER
괄호는 노드, 화살표는 관계를 나타내며, 패턴 매칭으로 경로를 읽는다.
MATCH (u:User {id: 1001})-[:BOUGHT]->(p:Product)
WHERE p.category = "book"
RETURN p.title, p.price
ORDER BY p.price DESC