Resolver ​
- Type
- Abstract Class
- Namespace
- craft\gql\base
- Inherits
- craft\gql\base\Resolver
- Extended by
- craft\gql\base\ElementResolver, craft\gql\resolvers\OptionField, craft\gql\resolvers\elements\Address, craft\gql\resolvers\elements\Asset, craft\gql\resolvers\elements\Category, craft\gql\resolvers\elements\Entry, craft\gql\resolvers\elements\GlobalSet, craft\gql\resolvers\elements\MatrixBlock, craft\gql\resolvers\elements\Tag, craft\gql\resolvers\elements\User
- Since
- 3.3.0
Class Resolver
Public Methods ​
Method | Description |
---|---|
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
Returns ​
mixed