Resolvers
Resolvers
A resolver is the Go function that produces the value of a field. The executor calls it with the parent value, the field’s arguments and information about the request, and completes what it returns according to the field’s type.
Fields without a resolver use the default resolver, which reads the value from the parent.
ResolveParams and ResolveInfo, return values and errors, sharing and testing resolvers.
How fields without a resolver read structs, maps and FieldResolver values, and the cases to watch.
Request values such as the signed-in user, per-request caches, and deadlines and cancellation.
Returning a function to run slow work in parallel, a helper, errors and mutations.
Last updated on