Class PostObjectQuery
Class PostObjectQuery
Namespace: WPGraphQL\Type\PostObject
Package: WPGraphQL\Type\PostObject
Since: 0.0.5
Located at Type/PostObject/PostObjectQuery.php
Package: WPGraphQL\Type\PostObject
Since: 0.0.5
Located at Type/PostObject/PostObjectQuery.php
Methods summary
public static
array
|
#
root_query( object $post_type_object )
Method that returns the root query field definition for the post object type |
public static
array
|
#
post_object_by( WP_Post_Type $post_type_object )
Method that returns the "post_object_by" field definition to get a post object by id, postId or slug. |
public static
mixed
|
#
post_object_by_args( WP_Post_Type $post_type_object )
Define the args to be used by the $postObject.By field |