What should be the result (or equivalent query of) the following query:
FROM GRAPH_TABLE (pg
MATCH SHORTEST 5 (a:Person)-[k:Knows]->*(b:Person), (b:Person)-[k2:Knows]->(c:Person)
COLUMNS (*)
SELECT *
FROM pg
(SELECT *
FROM person a, knows k, person b, knows k2, person c
WHERE ...
LIMIT 5
)
I'm afraid that the LIMIT 5 will come too early and perhaps select the first 5 results of the entire join, while those might not be the 5 shortest who are then joined on the (c:Person)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What should be the result (or equivalent query of) the following query:
I'm afraid that the
LIMIT 5
will come too early and perhaps select the first 5 results of the entire join, while those might not be the 5 shortest who are then joined on the (c:Person)