graphql_return_response
do_action( 'graphql_return_response', $filtered_response, $response, $this->schema, $operation, $query, $variables, $this, $query_id );
Run an action after the response has been filtered, as the response is being returned. This is a good place for debug tools to hook in to log things, etc.
- Type: action
- Group: Request Lifecycle
- Since: 0.0.5
- Source File:
plugins/wp-graphql/src/Request.php
Parameters
$filtered_response(mixed|array<string,mixed>|object): The filtered response for the GraphQL request$response(mixed|array<string,mixed>|object): The response for your GraphQL request$schema(\WPGraphQL\WPSchema): The schema object for the root request$operation(?string): The name of the operation$query(?string): The query that GraphQL executed$variables(?array<string,mixed>): Variables to passed to your GraphQL query$request(\WPGraphQL\Request): Instance of the Request$query_id(?string): The query id that GraphQL executed
Source
do_action( 'graphql_return_response', $filtered_response, $response, $this->schema, $operation, $query, $variables, $this, $query_id );
Related
Request::after_execute_actions()inplugins/wp-graphql/src/Request.php:568