Use uppercase RETURN in query
This is consistent with other Cypher queries.
This commit is contained in:
committed by
Michael J. Simons
parent
58e6694115
commit
646434b66a
@@ -96,7 +96,7 @@ interface MovieRepository extends Neo4jRepository<Movie, Long> {
|
|||||||
// derived finder
|
// derived finder
|
||||||
Movie findByTitle(String title);
|
Movie findByTitle(String title);
|
||||||
|
|
||||||
@Query("MATCH (m:Movie)<-[rating:RATED]-(user) WHERE id(movie)={movie} return rating")
|
@Query("MATCH (m:Movie)<-[rating:RATED]-(user) WHERE id(movie)={movie} RETURN rating")
|
||||||
List<Rating> getRatings(@Param("movie") Movie movie);
|
List<Rating> getRatings(@Param("movie") Movie movie);
|
||||||
|
|
||||||
// Co-Actors
|
// Co-Actors
|
||||||
|
|||||||
Reference in New Issue
Block a user