register_graphql_input_type

Given a Type Name and a $config array, this adds an InputType to the TypeRegistry

register_graphql_input_type( string $type_name, array $config );

Parameters

  • $type_name (string): The unique name of the InputType
  • $config (array): Configuration for the input type
    • $description (string): Description of the input type. This will be used to self-document the schema and should describe to clients how the input type should be used.
    • $fields (array): The fields that are part of the input type.
      • $type (string): The field type
      • $description (string): The field description

Source

File: access-functions.php

Examples

@todo

Additional Resources