graphql_process_http_request_response

do_action( 'graphql_process_http_request_response', $response, $response, $operation_name, $query, $variables, self::$http_status_code );

Run an action after the HTTP Response is ready to be sent back. This might be a good place for tools to hook in to track metrics, such as how long the process took from graphql_process_http_request to here, etc.

  • Type: action
  • Group: Request Lifecycle
  • Since: 0.0.5
  • Source File: plugins/wp-graphql/src/Router.php

Parameters

  • $response (WPGraphQLResult): The GraphQL response
  • $result (WPGraphQLResult): Deprecated. Same as $response.
  • $operation_name (string): The name of the operation
  • $query (string): The request that GraphQL executed
  • $variables (?array<string,mixed>): Variables to passed to your GraphQL query
  • $status_code (int|string): The status code for the response

Source

do_action( 'graphql_process_http_request_response', $response, $response, $operation_name, $query, $variables, self::$http_status_code );