Homepage
Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

graphql_resolve_field

Fire an action before the field resolves

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