IDE error after 1.13.x - Expected Connection to be a GraphQL Object type. #2723
-
I'm not sure if this is a bug or a conflict somehow (though have tried to disable several other plugins with the same issue), but accessing the graphql IDE results in a console error: I tried all rolling back through all versions from I am also using In all cases, the graphql endpoint is still functioning, just the IDE is broken. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @alancwoo WPGraphQL v1.13.x began enforcing the Relay Connection spec, and that's likely what's causing your error. You mentioned you tried disabling (I'm hoping) all your 3rd-party extensions, but what about custom code? The big breaking change you need to look for is that GraphQL objects at the end of one of WPGraphQL's connection resolvers need to be able to implement the The reason it's happening in your IDE is that the entire schema gets introspected, exposing the error that you'd otherwise only get if you were querying the specific (lazy-loaded) connection. |
Beta Was this translation helpful? Give feedback.
-
Also, if you turn on GraphQL Debugging and inspect the network response from |
Beta Was this translation helpful? Give feedback.
Also, if you turn on GraphQL Debugging and inspect the network response from
?graphql
, you should get some more info to help pinpoint you to the culprit. Feel free to share a screenshot here if you need help deciphering it