21550d3bb1
Summary: - checked existing queries and added new ones - minor changes to LDBC setup Reviewers: teon.banek, buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D737
8 lines
236 B
Plaintext
8 lines
236 B
Plaintext
MATCH (person1:Person {id:"17592186055119"}), (person2:Person {id:"8796093025131"})
|
|
OPTIONAL MATCH (person1)-bfs[r](a, b | type(a) = "KNOWS", 15)-(person2)
|
|
RETURN
|
|
CASE r IS NULL
|
|
WHEN true THEN -1
|
|
ELSE size(r) + 1
|
|
END AS pathLength;
|