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

Not working with WPGraphQL v1.13+ #673

Closed
jasonbahl opened this issue Nov 29, 2022 · 0 comments · Fixed by #675
Closed

Not working with WPGraphQL v1.13+ #673

jasonbahl opened this issue Nov 29, 2022 · 0 comments · Fixed by #675

Comments

@jasonbahl
Copy link
Collaborator

jasonbahl commented Nov 29, 2022

Describe the bug
When using WPGraphQL v1.13.0 with WPGraphQL for WooCommerce we get a fatal error.

That's being tracked here: wp-graphql/wp-graphql#2628
And resolved here: wp-graphql/wp-graphql#2627

But once that's resolved, there's a new issue.

WPGraphQL v1.13.0 introduced new Connection and Edge interfaces, and these Interfaces are implemented in the WPConnectionType class for any connection using the register_graphql_connection() API.

These Interfaces solidify the contract in the Schema that any connection should return nodes.

That means the toType should be a Type that implements the Node interface.

WooGraphQL currently has several connections to Types that are not currently implementing the Node interface.

Thus, we end up with errors like so:

CleanShot 2022-11-28 at 20 28 11

Additional context

We can resolve this by ensuring any of the Types that a connection in WooGraphQL is connected to implements the Node Interface.

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