Fork me on GitHub
#graphql
<
2017-08-29
>
abarylko01:08:42

@hmaurer I have been checking examples in JS... but not sure how to get the first parameter obj to obtain the movie_id in order to query the actors ....

stijn07:08:54

@abarylko a lacinia resolver has 3 arguments: context, arguments to the query and the resolved value of the enclosing object. Your actors resolver should use that 3rd argument (the surrounding movie object) to do the linking

abarylko14:08:43

Great! Thanks a lot @stijn!