OptionField

Type
Class
Namespace
craft\gql\resolvers
Inherits
craft\gql\resolvers\OptionField » craft\gql\base\Resolver
Since
3.4.6

Class OptionField

View source (opens new window)

# Public Methods

Method Description
resolve() Resolve a field to its value.

# resolve()

Resolve a field to its value.

View source (opens new window)

Arguments

  • $source (mixed) – The parent data source to use for resolving this field
  • $arguments (array (opens new window)) – Arguments for resolving this field.
  • $context (mixed) – The context shared between all resolvers
  • $resolveInfo (\GraphQL\Type\Definition\ResolveInfo) – The resolve information

Returns

mixed