graphql_request_data
apply_filters( 'graphql_request_data', $parsed_body_params, $request_context );
Filters normalized GraphQL request data before POST requests are parsed. This hook can be used for persisted-query workflows and other request preprocessing.
- Type: filter
- Group: Request Lifecycle
- Since: 0.2.0
- Source File:
plugins/wp-graphql/src/Server/WPHelper.php
Parameters
$data(mixed[]): The normalized GraphQL request data.$request_context(array<string,mixed>): The request context containing request method and parsed params.
Source
apply_filters( 'graphql_request_data', $parsed_body_params, $request_context );
Related
WPHelper::parseRequestParams()inplugins/wp-graphql/src/Server/WPHelper.php:52WPHelper::parseRequestParams()inplugins/wp-graphql/src/Server/WPHelper.php:71