class GraphQLMutation in GraphQL 8.3
Annotation for GraphQL mutation plugins.
Hierarchy
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\graphql\Annotation\GraphQLAnnotationBase
- class \Drupal\graphql\Annotation\GraphQLMutation
- class \Drupal\graphql\Annotation\GraphQLAnnotationBase
Expanded class hierarchy of GraphQLMutation
1 file declares its use of GraphQLMutation
- MockGraphQLPluginTrait.php in tests/
src/ Traits/ MockGraphQLPluginTrait.php
1 string reference to 'GraphQLMutation'
1 class is annotated with GraphQLMutation
- BuyCar in tests/
modules/ graphql_plugin_test/ src/ Plugin/ GraphQL/ Mutations/ BuyCar.php - A test mutation.
File
- src/
Annotation/ GraphQLMutation.php, line 10
Namespace
Drupal\graphql\AnnotationView source
class GraphQLMutation extends GraphQLAnnotationBase {
/**
* {@inheritdoc}
*/
public $pluginType = GRAPHQL_MUTATION_PLUGIN;
/**
* The field type.
*
* Must be a registered Interface, Type or Scalar.
*
* @var string
*/
public $type = NULL;
/**
* The field arguments.
*
* Array keyed by argument names with Scalar or Input Type names as values.
*
* @var array
*/
public $arguments = [];
/**
* The deprecation reason or FALSE if the field is not deprecated.
*
* @var string|bool
*/
public $deprecated = FALSE;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
GraphQLAnnotationBase:: |
public | property | The component description. | |
GraphQLAnnotationBase:: |
public | property | The component name. | |
GraphQLAnnotationBase:: |
public | property | The cache contexts for caching the response. | |
GraphQLAnnotationBase:: |
public | property | The cache max age for caching the response. | |
GraphQLAnnotationBase:: |
public | property | The cache tags for caching the response. | |
GraphQLAnnotationBase:: |
public | property | The cache contexts for caching the type system definition in the schema. | |
GraphQLAnnotationBase:: |
public | property | The cache max age for caching the type system definition in the schema. | |
GraphQLAnnotationBase:: |
public | property | The cache tags for caching the type system definition in the schema. | |
GraphQLAnnotationBase:: |
public | property | Weight for precedence calculations. | |
GraphQLAnnotationBase:: |
public | function |
GraphQLAnnotationBase constructor. Overrides Plugin:: |
|
GraphQLMutation:: |
public | property | The field arguments. | |
GraphQLMutation:: |
public | property | The deprecation reason or FALSE if the field is not deprecated. | |
GraphQLMutation:: |
public | property |
The plugin type. Overrides GraphQLAnnotationBase:: |
|
GraphQLMutation:: |
public | property | The field type. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |