pristas-peter / wp-graphql-gutenberg

Query gutenberg blocks with wp-graphql
https://wp-graphql-gutenberg.netlify.app
GNU General Public License v3.0
301 stars 62 forks source link

WPGraphQL v1.13.0 introduces Connection and Edge Interfaces that conflict with connections in this plugin #164

Closed jasonbahl closed 1 year ago

jasonbahl commented 1 year ago

WPGraphQL v1.13.0 introduced Connection and Edge Interfaces to the Schema that are applied to all connections that are registered via register_graphql_connection().

These interfaces enforce the rule that the type a connection goes to must be a Node type.

This plugin has connections to types that are not nodes, and thus we end up with Schema errors like so:

image

PROPOSED SOLUTION

Any connections in this plugin need to go to a type that is a Node. So any Types that are the toType should implement the Node interface OR we can filter out the Connection/Edge interfaces for connections that want to ignore them.

jasonbahl commented 1 year ago

closed by #165