graphql_resolve_field

Fire an action before the field resolves

apply_filters( 'graphql_resolve_field', mixed $result, mixed $source, array $args, AppContext $context, ResolveInfo $info, string $type_name, string $field_key, FieldDefinition $field, mixed $field_resolver );

Params

  • $result (mixed): The result of the field resolution
  • $source (mixed): The source passed down the Resolve Tree
  • $args (array): The args for the field
  • $context (AppContext): The AppContext passed down the ResolveTree
  • $info (ResolveInfo): The ResolveInfo passed down the ResolveTree
  • $type_name (string): The name of the type the fields belong to
  • $field_key (string): The name of the field
  • $field (FieldDefinition): The Field Definition for the resolving field
  • $field_resolver (mixed): The default field resolver