0226-filters-graphql-query-analyzer-runtime-node
目录
- title: graphql_query_analyzer_runtime_node hookType: filter hookGroup: debugging plugin: wp-graphql
- graphql_query_analyzer_runtime_node
- Parameters
- Source
- Related
title: graphql_query_analyzer_runtime_node hookType: filter hookGroup: debugging plugin: wp-graphql
graphql_query_analyzer_runtime_node
apply_filters( 'graphql_query_analyzer_runtime_node', $model->id, $model, $this->runtime_nodes );
Filter the node ID before returning to the list of resolved nodes
- Type: filter
- Group: Debugging and Instrumentation
- Since: 1.11.0
- Source File:
plugins/wp-graphql/src/Utils/QueryAnalyzer.php
Parameters
$model_id(int): The ID of the model (node) being returned$model(object): The Model object being returned$runtime_nodes(string[]|int[]): The runtimes nodes already collected
Source
apply_filters( 'graphql_query_analyzer_runtime_node', $model->id, $model, $this->runtime_nodes );
Related
QueryAnalyzer::track_nodes()inplugins/wp-graphql/src/Utils/QueryAnalyzer.php:814