Class PostObjectType
Class PostObjectType
This sets up the base PostObjectType. Custom Post Types that are set to "show_in_graphql" automatically use the PostObjectType and inherit the fields that are defined here. The fields get passed through a filter unique to each type, so each post_type can modify it's type schema via field filters.
NOTE: In some cases the shape of a Custom Post Type's schema is so drastically different from the standard PostObjectType shape it might make more sense for the custom post type to register a different type altogether instead of utilizing the PostObjectType.
- GraphQL\Type\Definition\ObjectType
-
WPGraphQL\Type\WPObjectType
-
WPGraphQL\Type\PostObject\PostObjectType
Namespace: WPGraphQL\Type\PostObject
Package: WPGraphQL\Type
Since: 0.0.5
Located at Type/PostObject/PostObjectType.php
Package: WPGraphQL\Type
Since: 0.0.5
Located at Type/PostObject/PostObjectType.php
Methods summary
public
|
|
public static
mixed
|