graphql_connection

Filter the connection. In some cases, connections will want to provide additional information other than edges, nodes, and pageInfo. This filter allows additional fields to be returned to the connection resolver

apply_filters( 'graphql_connection', array $connection, AbstractConnectionResolver $resolver );

Params

  • $connection (array): The connection data being returned
  • $resolver (AbstractConnectionResolver): The instance of the connection resolver