graphql_connection_should_execute
apply_filters( 'graphql_connection_should_execute', $should_execute, $this );
Check if the connection should execute. If conditions are met that should prevent the execution, we can bail from resolving early, before the query is executed. Filter whether the connection should execute.
- Type: filter
- Group: Connections
- Since: 0.0.6
- Source File:
plugins/wp-graphql/src/Data/Connection/AbstractConnectionResolver.php
Parameters
$should_execute(bool): Whether the connection should execute$connection_resolver(\WPGraphQL\Data\Connection\AbstractConnectionResolver): Instance of the Connection Resolver
Source
apply_filters( 'graphql_connection_should_execute', $should_execute, $this );
Related
AbstractConnectionResolver::execute_and_get_ids()inplugins/wp-graphql/src/Data/Connection/AbstractConnectionResolver.php:1093