Skip to content

WPGraphQL 2.0 Compatability #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/filter-exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,7 @@ class FilterException extends \Exception implements ClientAware {
*
* @return bool isSafe from ClientAware.
*/
public function isClientSafe() {
public function isClientSafe(): bool {
return true;
}

/**
* Relay ClientAware fn.
*
* @return string category from ClientAware.
*/
public function getCategory() {
return 'wp-graphql-filter-query plugin';
}
}
2 changes: 1 addition & 1 deletion src/filter-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class FilterQuery {
public function add_hooks(): void {
add_action( 'graphql_register_types', [ $this, 'extend_wp_graphql_fields' ] );

add_filter( 'graphql_RootQuery_fields', [ $this, 'apply_filters_input' ], 20 );
add_filter( 'graphql_RootQuery_fields', [ $this, 'apply_filters_input' ], 30 );
add_filter( 'graphql_connection_query_args', [ $this, 'apply_recursive_filter_resolver' ], 10, 2 );
}

Expand Down
Loading