MCPcopy Index your code
hub / github.com/graphql-go/graphql / FieldResolver

Interface FieldResolver

executor.go:929–932  ·  view source on GitHub ↗

FieldResolver is used in DefaultResolveFn when the the source value implements this interface.

Source from the content-addressed store, hash-verified

927
928// FieldResolver is used in DefaultResolveFn when the the source value implements this interface.
929type FieldResolver interface {
930 // Resolve resolves the value for the given ResolveParams. It has the same semantics as FieldResolveFn.
931 Resolve(p ResolveParams) (interface{}, error)
932}
933
934// DefaultResolveFn If a resolve function is not given, then a default resolve behavior is used
935// which takes the property of the source object of the same name as the field

Callers 1

DefaultResolveFnFunction · 0.65

Implementers 1

testCustomResolverexecutor_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…