Use uppercase RETURN in query

This is consistent with other Cypher queries.
This commit is contained in:
Aaron S. Hawley
2018-08-08 14:22:24 -04:00
committed by Michael J. Simons
parent 58e6694115
commit 646434b66a

View File

@@ -96,7 +96,7 @@ interface MovieRepository extends Neo4jRepository<Movie, Long> {
// derived finder
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);
// Co-Actors