Closed jasonbahl closed 2 years ago
Updates:
v1.4.0
and this functionality works. v1.5.3
š¤ v1.4.3
š¤ v1.4.1
š¤ v1.4.0
, so it seems that v1.4.1
is the culprit. Aha!
This is only an issue when I'm also running my beta "WPGraphQL Block Editor" extension š¤
Will dig into that š
I have a feeling it has to do with multiple plugins registering interfaces to types? š¤
Ok, closing this as I've determined it's not a bug with WPGraphQL but was a bug with my local setup. š¤¦š»āāļø
I had a plugin that I was working on that had WPGraphQL as a composer dependency and so I was loading WPGraphQL twice which was causing some real funky behavior š¤¦š»āāļø
Problem
The
register_graphql_interfaces_to_types()
function isn't working as expected.The tests (https://github.com/wp-graphql/wp-graphql/blob/develop/tests/wpunit/RegisterInterfaceToTypeTest.php) for this functionality pass, but the functionality doesn't seem to work in practice.
Steps to reproduce
Expected Behavior
I expect the GraphQL Query for the Type to return the interfaces that are applied by the Type, and I expect the field enforced by the Interface to also be returned in the fields list.