Homepage
Link to WPGraphQL on Github
Link to WPGraphQL on WordPress.org

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.

Params

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