Trying retrieve all acocuntId's that have 'follows' relationship with game,
I may have missed something in Query (line 16) as it is returning empty.
1. Class Account{
2.
3. private Long accountId;
4.
5. @Fetch
6. @RelatedTo(type="follows",
7. direction=Direction.OUTGOING,
8. elementClass = Game.class)
9. private Set<Game> followingGame;
10.
11. }
12.
13.
14. Repository Interface
15. public interface GameRepository extends GraphRepository<Game>{
16. //Return all account id's following game
17. @Query("start game=node(*) match (game)<-[:follows]-(follower) where
game.id=({0}) return follower.accountId")
18. public Iterable<Long> ids(Long gameId);
19.
20. }
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.