private static object CompleteResolverResult( FieldNode fieldSelection, IResolverResult resolverResult) { if (resolverResult.IsError) { return(new FieldError( resolverResult.ErrorMessage, fieldSelection)); } return(resolverResult.Value); }
public async ValueTask EndResolveAsync(IResolverContext context, IResolverResult result) { foreach (var extension in _scopes) { var task = extension.EndResolveAsync(context, result); if (task.IsCompletedSuccessfully) { continue; } await task; } }