Skip to content

Commit be4d39a

Browse files
committed
Remove typo, fix direction of edge
1 parent ab32c6f commit be4d39a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypher/queries/bi-18.cypher

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*
33
:param [{ person1Id, tag }] => {RETURN 2 AS person1Id, 'Snowboard' AS tag}
44
*/
5-
MATCH (person1:Person {id: $person1Id})-[:KNOWS]-(mutualFriend:Person)-[:KNOWS]-(person2:Person)-[:HAS_INTEREST]-(q:Tag {name: $tag})
5+
MATCH (person1:Person {id: $person1Id})-[:KNOWS]-(mutualFriend:Person)-[:KNOWS]-(person2:Person)-[:HAS_INTEREST]->(:Tag {name: $tag})
66
WHERE person1 <> person2
77
AND NOT (person1)-[:KNOWS]-(person2)
88
RETURN person2.id AS person2Id, count(DISTINCT mutualFriend) AS mutualFriendCount

0 commit comments

Comments
 (0)