graphql_mutation_response
do_action( 'graphql_mutation_response', $payload, $input, $unfiltered_input, $context, $info, $this->mutation_name );
Fires after the mutation payload has been returned from the mutateAndGetPayload callback.
- Type: action
- Group: Request Lifecycle
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Type/WPMutationType.php
Parameters
$payload(array<string,mixed>): The Payload returned from the mutation.$input(array<string,mixed>): The mutation input args, after being filtered by ‘graphql_mutation_input’.$unfiltered_input(array<string,mixed>): The unfiltered input args of the mutation$context(\WPGraphQL\AppContext): The AppContext object.$info(\GraphQL\Type\Definition\ResolveInfo): The ResolveInfo object.$mutation_name(string): The name of the mutation field.
Source
do_action( 'graphql_mutation_response', $payload, $input, $unfiltered_input, $context, $info, $this->mutation_name );
Related
WPMutationType::get_resolver()inplugins/wp-graphql/src/Type/WPMutationType.php:273