type

ExtensionField

One trusted compiled root query or mutation field.

Properties

PropertyTypeDescription
NamestringThe Name value.
DescriptionstringThe Description value.
Typegraphql.OutputThe Type value.
Argsgraphql.FieldConfigArgumentThe Args value.
CostintThe Cost value.
ResolveExtensionResolverThe Resolve value.

How it works

Cost contributes to request complexity. Extensions receive public application APIs, not a raw store adapter.

Full signature

type ExtensionField struct { Name string Description string Type enginegraphql.Output Args enginegraphql.FieldConfigArgument Cost int Resolve ExtensionResolver }

Source plugins/graphql/graphql.go:56