You are here

public property GraphQLField::$type in GraphQL 8.3

The field type.

Must be a registered Interface, Type, Scalar or Enum.

If an associative array is provided - the Enum type will be created automatically for the given set of values. But $enum_type_name has to be defined in this case.

Type: string|array

File

src/Annotation/GraphQLField.php, line 44

Class

GraphQLField
Annotation for GraphQL field plugins.

Namespace

Drupal\graphql\Annotation

Code

public $type = NULL;