const QUERY = gql`{ survey(id: $surveyId) { id status collectors { id name } } surveyCollectors(surveyId: $surveyId) { id name } }`; const resolvers = { Survey: { collectors: (survey, args, ctx, info) => getSurveyCollectors(ctx, survey.id) status: (survey, args, ctx, info) => getSurveyStatus(survey.id) } Query: { surveyCollectors: (root, args, ctx, info) => getSurveyCollectors(ctx, args.surveyId) } }