We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab32c6f commit be4d39aCopy full SHA for be4d39a
cypher/queries/bi-18.cypher
@@ -2,7 +2,7 @@
2
/*
3
:param [{ person1Id, tag }] => {RETURN 2 AS person1Id, 'Snowboard' AS tag}
4
*/
5
-MATCH (person1:Person {id: $person1Id})-[:KNOWS]-(mutualFriend:Person)-[:KNOWS]-(person2:Person)-[:HAS_INTEREST]-(q:Tag {name: $tag})
+MATCH (person1:Person {id: $person1Id})-[:KNOWS]-(mutualFriend:Person)-[:KNOWS]-(person2:Person)-[:HAS_INTEREST]->(:Tag {name: $tag})
6
WHERE person1 <> person2
7
AND NOT (person1)-[:KNOWS]-(person2)
8
RETURN person2.id AS person2Id, count(DISTINCT mutualFriend) AS mutualFriendCount
0 commit comments