You are here

GraphQLType.php in GraphQL 8.3

File

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

namespace Drupal\graphql\Annotation;


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

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

  /**
   * The list of interfaces implemented by this type.
   *
   * Fields annotated to interfaces will be inherited.
   *
   * @var array
   */
  public $interfaces = [];

  /**
   * The list of union types containing this type.
   *
   * @var array
   */
  public $unions = [];

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

}

Classes

Namesort descending Description
GraphQLType Annotation for GraphQL type plugins.