You are here

GraphQLUnionType.php in GraphQL 8.3

File

src/Annotation/GraphQLUnionType.php
View source
<?php

namespace Drupal\graphql\Annotation;


/**
 * Annotation for GraphQL union type plugins.
 *
 * @Annotation
 */
class GraphQLUnionType extends GraphQLAnnotationBase {

  /**
   * {@inheritdoc}
   */
  public $pluginType = GRAPHQL_UNION_TYPE_PLUGIN;

  /**
   * The list of types this union type contains.
   *
   * @var string[]
   */
  public $types = [];

  /**
   * The typed data type of this type.
   *
   * @var string|null
   */
  public $type = NULL;

}

Classes

Namesort descending Description
GraphQLUnionType Annotation for GraphQL union type plugins.