You are here

public function SchemaPluginBase::processMutations in GraphQL 8.3

Processes a list of mutation definitions.

Parameters

array $mutations: An array of mutation definitions.

Return value

array The processed mutation definitions.

Overrides SchemaBuilderInterface::processMutations

1 call to SchemaPluginBase::processMutations()
SchemaPluginBase::getMutations in src/Plugin/GraphQL/Schemas/SchemaPluginBase.php
Retrieves the mutations attached to the schema.

File

src/Plugin/GraphQL/Schemas/SchemaPluginBase.php, line 427

Class

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

public function processMutations(array $mutations) {
  return array_map([
    $this,
    'buildMutation',
  ], $mutations);
}