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

Use of graphql_connection_query_args filter breaks User Role Connections #56

Open
justlevine opened this issue Aug 1, 2021 · 0 comments

Comments

@justlevine
Copy link

Tl;dr when wp-graphql-polylang is enabled, queries with user.role cause an Internal Server Error. This is due to graphqul_connection_query_args expecting an array, even though UserRoleConnectionResolver returns null.

Details here: (wp-graphql/wp-graphql#2048))

The simple solution is to drop the array type from the $query_args argument in __filter_graphql_connection_args().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant