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 CommentAuthorUnionType

Class CommentAuthorUnionType

In some situations, the type of term cannot be known until query time. The commentAuthorUnion allows for a comment author to be queried and resolved to a number of types. Currently will return a user or commentAuthor.

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

Methods summary

public
# __construct( )

CommentAuthorUnionType constructor.

CommentAuthorUnionType 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