memgraph/tests/public_benchmark/ldbc/test_cases/queries/query_13.cyp
florijan 21550d3bb1 LDBC queries checked
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
2017-09-02 10:36:02 +02:00

8 lines
238 B
Plaintext

MATCH (person1:Person {id:"17592186055119"}), (person2:Person {id:"8796093025131"})
OPTIONAL MATCH path = shortestPath((person1)-[:KNOWS*..15]-(person2))
RETURN
CASE path IS NULL
WHEN true THEN -1
ELSE length(path)
END AS pathLength;