OptionField ​
- Type
- Class
- Namespace
- craft\gql\resolvers
- Inherits
- craft\gql\resolvers\OptionField » craft\gql\base\Resolver
- Since
- 3.4.6
Class OptionField
Protected Properties ​
| Property | Description |
|---|---|
| eagerLoadableFieldsByContext | array – Cache fields by context. |
Public Methods ​
| Method | Description |
|---|---|
| getArrayableArguments() | Returns a list of all the arguments that can be accepted as arrays. |
| prepareArguments() | Prepare arguments for use, converting to array where applicable. |
| resolve() | Resolve a field to its value. |
resolve() ​
Resolve a field to its value.
Arguments ​
$source(mixed) – The parent data source to use for resolving this field$arguments(array) – Arguments for resolving this field.$context(mixed) – The context shared between all resolvers$resolveInfo(\GraphQL\Type\Definition\ResolveInfo) – The resolve information
Protected Methods ​
| Method | Description |
|---|---|
| extractEagerLoadCondition() | Extract eager load conditions for a given resolve information. Preferably at the very top of the query. |