public SkillQuery(ISkillLogic skillLogic) { FieldAsync <SkillType>( "skillById", arguments: new QueryArguments(new QueryArgument <IntGraphType> { Name = "id" }), resolve: async context => { return(await skillLogic.GetById(context.GetArgument <int>("id"))); } ); FieldAsync <ListGraphType <SkillType> >( "skillsByPhase", arguments: new QueryArguments(new QueryArgument <IntGraphType> { Name = "phaseId" }), resolve: async context => { return(await skillLogic.GetByPhase(context.GetArgument <int>("phaseId"))); } ); }