type
ExtensionField
One trusted compiled root query or mutation field.
Properties
| Property | Type | Description |
|---|---|---|
Name | string | The Name value. |
Description | string | The Description value. |
Type | graphql.Output | The Type value. |
Args | graphql.FieldConfigArgument | The Args value. |
Cost | int | The Cost value. |
Resolve | ExtensionResolver | The 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
}