You are missing @GraphId Long id;
in your class
for your query:
> match (game:Game)<-[:follows]-(follower:Account) where id(game) = {0} return
> follower.accountId
Am 07.07.2014 um 19:57 schrieb [email protected]:
> 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.
>
> Class Account{
>
> private Long accountId;
>
> @Fetch
> @RelatedTo(type="follows",
> direction=Direction.OUTGOING,
> elementClass = Game.class)
> private Set<Game> followingGame;
>
> }
>
>
> Repository Interface
> public interface GameRepository extends GraphRepository<Game>{
> //Return all account id's following game
> @Query("start game=node(*) match (game)<-[:follows]-(follower) where
> game.id=({0}) return follower.accountId")
> public Iterable<Long> ids(Long gameId);
>
> }
>
> --
> 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.
--
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.