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

Add support for interfaces implementing interfaces #597

Closed
wants to merge 1 commit into from

Conversation

Tapped
Copy link

@Tapped Tapped commented Mar 9, 2021

Add support for interfaces implementing interfaces

This is per the RFC 373 found here: graphql/graphql-spec#373

TODO:

  • Validate that there are no cycles
  • Validate that transitively implemented interfaces (interfaces implemented by the interface that is being implemented) must also be defined on an implementing type or interface.
  • Validate that the implementing interface must define each field that is specified by the implemented interface.
  • Add more tests

@yanns
Copy link
Contributor

yanns commented Apr 9, 2021

The binary compatibility checks are of course not happy with the changes. 😉
You can disable them temporary the time to work on this PR.

@Tapped
Copy link
Author

Tapped commented Apr 9, 2021

Yes, I guess we can make it compatible by putting the interface field at the end of the interface with default = None.

yanns added a commit that referenced this pull request Feb 10, 2023
The change #960
introduces some support for interfaces of interface.

But this feature is not complete: it would need something like
#597 for full support.

Right now, sometimes we support interfaces of interface and sometimes now.

To avoid this configuration, let's always return an empty list.

We can tackle the complete support for interfaces of interface later.
@yanns
Copy link
Contributor

yanns commented Mar 30, 2023

#981

@yanns yanns closed this Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants