graphql_connection_should_execute

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.

apply_filters( 'graphql_connection_should_execute', bool $should_execute, AbstractConnectionResolver $resolver );

Params

  • $should_execute (bool): Whether the connection should execute
  • $resolver (AbstractConnectionResolver): Instance of the connection resolver