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

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

Closed
jasonbahl opened this issue Dec 2, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jasonbahl
Copy link
Collaborator

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 jasonbahl added the bug Something isn't working label Dec 2, 2022
@jasonbahl jasonbahl self-assigned this Dec 2, 2022
@jasonbahl
Copy link
Collaborator Author

closed by #165

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant