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

  • PostObjectQuery
  • PostObjectType

Class PostObjectQuery

Class PostObjectQuery

Namespace: WPGraphQL\Type\PostObject
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

Method that returns the root query field definition for the post object type

Parameters

$post_type_object

Returns

array

Since

0.0.5
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.

Method that returns the "post_object_by" field definition to get a post object by id, postId or slug.

Parameters

$post_type_object

Returns

array
public static mixed
# post_object_by_args( WP_Post_Type $post_type_object )

Define the args to be used by the $postObject.By field

Define the args to be used by the $postObject.By field

Parameters

$post_type_object

Returns

mixed
API documentation generated by ApiGen