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

  • CommentAuthorUnionType
  • PostObjectUnionType
  • TermObjectUnionType

Class TermObjectUnionType

Class TermObjectUnionType

In some situations, the type of term cannot be known until query time. The termObjectUnion allows for connections to be queried and resolved to a number of types.

GraphQL\Type\Definition\UnionType
Extended by WPGraphQL\Type\Union\TermObjectUnionType
Namespace: WPGraphQL\Type\Union
Package: WPGraphQL\Type\Union
Located at Type/Union/TermObjectUnionType.php

Methods summary

public
# __construct( )

TermObjectUnionType constructor.

TermObjectUnionType constructor.

public array|null
# getPossibleTypes( )

This defines the possible types that can be resolved by this union

This defines the possible types that can be resolved by this union

Returns

array|null
An array of possible types that can be resolved by the union
API documentation generated by ApiGen