graphql_execute_query_params

apply_filters( 'graphql_execute_query_params', $params->query ?? '', $params );

Allow the query string to be determined by a filter. Ex, when params->queryId is present, query can be retrieved.

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

Parameters

  • $query (string): The query string to execute.
  • $params (\GraphQL\Server\OperationParams): Operation params for the request.

Source

apply_filters(
				'graphql_execute_query_params',
				$params->query ?? '',
				$params
			);