Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #4 from neo4j-graphql/master
Browse files Browse the repository at this point in the history
upstream update
  • Loading branch information
michaeldgraham authored Sep 6, 2018
2 parents 60bd253 + 38c2560 commit 8fc0aab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/apollo-server/movies-typedefs.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ type Movie {
imdbRating: Float
genres: [Genre] @relation(name: "IN_GENRE", direction: "OUT")
similar: [Movie] @cypher(
statement: "MATCH (this)-[:IN_GENRE]->(:Genre)<-[:IN_GENRE]-(o:Movie) RETURN o LIMIT {first}")
statement: """MATCH (this)<-[:RATED]-(:User)-[:RATED]->(s:Movie)
WITH s, COUNT(*) AS score
RETURN s ORDER BY score DESC LIMIT {first}""")
}
type Genre {
Expand Down

0 comments on commit 8fc0aab

Please sign in to comment.