Skip to content

Support interfaces implmenting interfaces when --includeDirectives is… #51

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

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

thillm-amazon
Copy link
Contributor

PR to fix "Interfaces implementing other interfaces loose implements clause when --includeDirectives option set" #50.

Issue: #50

Description of changes:
The printFilteredSchema method in printers.ts (used when --includeDirectives is set) previously did not include logic for checking if a GraphQLInterfaceType implemented any parent interfaces. This change moves the existing logic for printing a GraphQLObjectType which includes printing implemented interfaces into a common function getImplementedInterfaces that is used by both GraphQLInterfaceType and GraphQLObjectType for handling parent interfaces.

Test cases are updated to include a use-case where an interface implements another interface.

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.

2 participants