Adding common followers API, fixing fallback query again

This commit is contained in:
Eugen Rochko
2016-10-29 01:29:19 +02:00
parent c913bdfc98
commit e0a197650a
9 changed files with 23 additions and 13 deletions

View File

@@ -36,11 +36,7 @@ END
neo = Neography::Rest.new
query = <<END
OPTIONAL MATCH (a {account_id: {id}})
WITH a
MATCH (b)
WHERE b <> a
AND NOT (a)-[:follows]->(b)
RETURN b.account_id
ORDER BY b.nodeRank DESC
LIMIT {limit}