is there a way to pass cancellation token in graphql endpoint?
public class GetAccountQuery : ObjectGraphType { public GetAccountQuery(IRolver resolver) { FieldAsync<UserType>( "GetAccount", arguments: new QueryArguments( new QueryArgument<NonNullGraphType<IdGraphType>> { Name = "userId" }, resolve: async context => await resolver.ResolveAsync(context, pass in cancellation token ?? )); } } 11 Answer
found the answer, inject the IHttpContextAccessor into the GetAccountQuery ctor and then access the Cancellation token from the httpcontext like so:
HttpContextAccessor.HttpContext.RequestAborted