graphql_cache_collection_get_query_models
apply_filters( 'graphql_cache_collection_get_query_models', $map, $schema, $query, $type_info );
Filters query model cache keys derived by QueryAnalyzer.
- Type: filter
- Group: Debugging and Instrumentation
- Since: 1.11.0
- Source File:
plugins/wp-graphql/src/Utils/QueryAnalyzer.php
Parameters
$map(string[]): Query model cache keys.$schema(?\GraphQL\Type\Schema): The WPGraphQL Schema for the current request.$query(?string): The query string being requested.$type_info(\GraphQL\Utils\TypeInfo): Type metadata gathered while traversing the AST.
Source
apply_filters( 'graphql_cache_collection_get_query_models', $map, $schema, $query, $type_info );
Related
QueryAnalyzer::set_query_models()inplugins/wp-graphql/src/Utils/QueryAnalyzer.php:754