You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recommendations database has relationships: DIRECTED, ACTED_IN, RATED, IN_GENRE
However the code expects these relationships: DIRECTED, ACTED_IN, RATED, IN_GENRE, PRODUCED, WRITER_OF
Also the code has looks for "tmdbId" in the below cypher. tmdbId should be imdbId:
MATCH (movie:Movie {tmdbId: $movieId})
OPTIONAL MATCH (movie)<-[my_rated:RATED]-(me:User {id: null})
OPTIONAL MATCH (movie)<-[r:ACTED_IN]-(a:Person)
OPTIONAL MATCH (related:Movie)<--(a:Person) WHERE related <> movie
OPTIONAL MATCH (movie)-[:IN_GENRE]->(genre:Genre)
OPTIONAL MATCH (movie)<-[:DIRECTED]-(d:Person)
OPTIONAL MATCH (movie)<-[:PRODUCED]-(p:Person)
OPTIONAL MATCH (movie)<-[:WRITER_OF]-(w:Person)
WITH DISTINCT movie,
my_rated,
genre, d, p, w, a, r, related, count(related) AS countRelated
ORDER BY countRelated DESC
RETURN DISTINCT movie,
my_rated.rating AS my_rating,
collect(DISTINCT d) AS directors,
collect(DISTINCT p) AS producers,
collect(DISTINCT w) AS writers,
collect(DISTINCT{ name:a.name, id:a.tmdbId, poster_image:a.poster, role:r.role}) AS actors,
collect(DISTINCT related) AS related,
collect(DISTINCT genre) AS genres
The text was updated successfully, but these errors were encountered:
The readme suggests to use this database: Go to https://sandbox.neo4j.com/?usecase=recommendations&ref=movie-app-tutorial, pick "Recommendations", and press play to start the database.
The recommendations database has relationships: DIRECTED, ACTED_IN, RATED, IN_GENRE
However the code expects these relationships: DIRECTED, ACTED_IN, RATED, IN_GENRE, PRODUCED, WRITER_OF
Also the code has looks for "tmdbId" in the below cypher. tmdbId should be imdbId:
The text was updated successfully, but these errors were encountered: