Class Config
Class Config
This class contains configurations for various data-related things, such as query filters for cursor pagination.
Methods summary
public
|
|
public
string
|
#
graphql_wp_query_cursor_pagination_support( string $where, WP_Query $query )
This filters the WPQuery 'where' $args, enforcing the query to return results before or after the referenced cursor |
public
array
|
#
graphql_wp_term_query_cursor_pagination_support( array $pieces, array $taxonomies, array $args )
This filters the term_clauses in the WP_Term_Query to support cursor based pagination, where we can move forward or backward from a particular record, instead of typical offset pagination which can be much more expensive and less accurate. |
public
array
|
#
graphql_wp_comments_query_cursor_pagination_support( array $pieces, WP_Comment_Query $query )
This returns a modified version of the $pieces of the comment query clauses if the request is a GRAPHQL_REQUEST and the query has a graphql_cursor_offset defined |