Homepage
Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

graphql_request_data

Allow the request data to be filtered. Previously this filter was only applied to non-HTTP requests. Since 0.2.0, we will apply it to all requests.

This is a great place to hook if you are interested in implementing persisted queries (and ends up being a bit more flexible than graphql-php’s built-in persistentQueryLoader).

Params

  • $data (array): An array containing the pieces of the data of the GraphQL request
  • $request_context (array): An array containing the both body and query params