GraphQLEnum.php in GraphQL 8.3
Namespace
Drupal\graphql\AnnotationFile
src/Annotation/GraphQLEnum.phpView source
<?php
namespace Drupal\graphql\Annotation;
/**
* Annotation for GraphQL scalar plugins.
*
* @Annotation
*/
class GraphQLEnum extends GraphQLAnnotationBase {
/**
* {@inheritdoc}
*/
public $pluginType = GRAPHQL_ENUM_PLUGIN;
/**
* The typed data type of this type.
*
* @var string|null
*/
public $type = NULL;
/**
* The enum's key / value pairs.
*
* @var array
*/
public $values = [];
}
Classes
Name | Description |
---|---|
GraphQLEnum | Annotation for GraphQL scalar plugins. |