You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the ResolveFieldFinishFunc (as registered by the ResolveFieldDidStart method on the extension) is called before the function value is executed. If I'm reading the source correctly below for resolveField, resolveFieldFinishFn is called immediately after the resolveFn, but before completeValueCatchingError actually evaluates the resolver value if it is a function.
Is there a reason for this? Since the Extension interface was created in part to support tracing use cases as per #448, that we would want to only run the ResolveFieldFinishFunc after the resolver value is fully evaluated.
The text was updated successfully, but these errors were encountered:
When using an extension with a schema which has a resolver that returns a function value, e.g.
the
ResolveFieldFinishFunc
(as registered by theResolveFieldDidStart
method on the extension) is called before the function value is executed. If I'm reading the source correctly below forresolveField
,resolveFieldFinishFn
is called immediately after theresolveFn
, but beforecompleteValueCatchingError
actually evaluates the resolver value if it is a function.graphql/executor.go
Lines 657 to 663 in bed865f
Is there a reason for this? Since the
Extension
interface was created in part to support tracing use cases as per #448, that we would want to only run theResolveFieldFinishFunc
after the resolver value is fully evaluated.The text was updated successfully, but these errors were encountered: