graphql_field_definition

Filter the field definition

apply_filters( 'graphql_field_definition', GraphQL\Type\Definition\FieldDefinition $field, string $type_name );

Params

  • $field (GraphQL\Type\Definition\FieldDefinition): The field definition
  • $type_name (string): The name of the Type the field belongs to