Skip to content
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