You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Additional context
We can resolve this by ensuring any of the Types that a connection in WooGraphQL is connected to implements the Node Interface.
The text was updated successfully, but these errors were encountered:
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
andEdge
interfaces, and these Interfaces are implemented in the WPConnectionType class for any connection using theregister_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 theNode
interface.WooGraphQL currently has several connections to Types that are not currently implementing the
Node
interface.Thus, we end up with errors like so:
Additional context
We can resolve this by ensuring any of the Types that a connection in WooGraphQL is connected to implements the
Node
Interface.The text was updated successfully, but these errors were encountered: