0252-filters-graphql-should-analyze-query
title: graphql_should_analyze_query hookType: filter hookGroup: debugging plugin: wp-graphql
graphql_should_analyze_query
apply_filters( 'graphql_should_analyze_query', $is_enabled, $this->get_request() );
Filters whether to analyze queries or for a specific GraphQL request.
- Type: filter
- Group: Debugging and Instrumentation
- Since: 1.11.0
- Source File:
plugins/wp-graphql/src/Utils/QueryAnalyzer.php
Parameters
$should_analyze_queries(bool): Whether to analyze queries for the current request. Defaults to the value ofgraphql_query_analyzer_enabledfilter.$request(\WPGraphQL\Request): The GraphQL request being executed.
Source
apply_filters( 'graphql_should_analyze_query', $is_enabled, $this->get_request() );
Related
QueryAnalyzer::is_enabled_for_query()inplugins/wp-graphql/src/Utils/QueryAnalyzer.php:213
这篇文档对你有帮助吗?
谢谢你的反馈!