有没有办法在graphql端点中传递取消令牌?
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 ?? ));
}
}