Overview
  • Namespace
  • Class

Namespaces

  • WPGraphQL
    • Data
    • Type
      • Avatar
      • Comment
        • Connection
      • CommentAuthor
      • EditLock
      • Enum
      • MediaItem
        • Mutation
      • Plugin
        • Connection
      • PostObject
        • Connection
        • Mutation
      • PostType
      • Setting
      • Taxonomy
      • TermObject
        • Connection
        • Mutation
      • Theme
        • Connection
      • Union
      • User
        • Connection
        • Mutation
    • Utils

Classes

  • RootMutationType
  • RootQueryType
  • WPEnumType
  • WPInputObjectType
  • WPObjectType

Class WPInputObjectType

Class WPInputObjectType

Input types should extend this class to take advantage of the helper methods for formatting and adding consistent filters.

GraphQL\Type\Definition\InputObjectType
Extended by WPGraphQL\Type\WPInputObjectType

Direct known subclasses

WPGraphQL\Type\Comment\Connection\CommentConnectionArgs, WPGraphQL\Type\PostObject\Connection\PostObjectConnectionArgs, WPGraphQL\Type\PostObject\Connection\PostObjectConnectionArgsDateQuery, WPGraphQL\Type\TermObject\Connection\TermObjectConnectionArgs, WPGraphQL\Type\User\Connection\UserConnectionArgs

Namespace: WPGraphQL\Type
Package: WPGraphQL\Type
Since: 0.0.5
Located at Type/WPInputObjectType.php

Methods summary

public
# __construct( array $config = [] )

WPInputObjectType constructor.

WPInputObjectType constructor.

Parameters

$config
The configuration for the InputObjectType
public static mixed
# prepare_fields( array $fields, string $type_name )

prepare_fields

prepare_fields

This function sorts the fields and applies a filter to allow for easily extending/modifying the shape of the Schema for the type.

Parameters

$fields
$type_name

Returns

mixed

Since

0.0.5
public static string
# format_enum_name( $name )

format_enum_name

format_enum_name

This formats enum_names to be all caps with underscores for spaces/word-breaks

Parameters

$name

Returns

string

Since

0.0.5
API documentation generated by ApiGen