sangria
sangria copied to clipboard
Add support for interfaces implementing interfaces
Add support for interfaces implementing interfaces
This is per the RFC 373 found here: https://github.com/graphql/graphql-spec/pull/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
The binary compatibility checks are of course not happy with the changes. 😉 You can disable them temporary the time to work on this PR.
Yes, I guess we can make it compatible by putting the interface field at the end of the interface with default = None.