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

fix(federation): relaxes @requires and @external constraints #1778

Merged
merged 1 commit into from
May 23, 2023

Conversation

dariuszkuc
Copy link
Collaborator

📝 Description

Relaxing @requires and @external constraints. Previously ALL fields referenced from the @requires selection set had to be marked @external. This was too strict as it is possible to define @requires selection set against local object type with some @external fields. As a result only leaf fields (i.e. scalar/enum fields) have to be explicitly marked @external OR implicitly inherit @external characteristic through any of the leaf field ancestors.

🔗 Related Issues

Relaxing `@requires` and `@external` constraints. Previously ALL fields referenced from the `@requires` selection set had to be marked `@external`. This was too strict as it is possible to define `@requires` selection set against **local** object type with some `@external` fields. As a result only leaf fields (i.e. scalar/enum fields) have to be explicitly marked `@external` OR implicitly inherit `@external` characteristic through any of the leaf field ancestors.
@dariuszkuc dariuszkuc added type: bug Something isn't working changes: patch Changes require a patch version module: generator Issue affects the schema generator and federation code labels May 23, 2023
@dariuszkuc dariuszkuc enabled auto-merge (squash) May 23, 2023 19:47
@dariuszkuc dariuszkuc merged commit 5cad531 into ExpediaGroup:master May 23, 2023
@dariuszkuc dariuszkuc deleted the requiresLeaf branch May 23, 2023 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes: patch Changes require a patch version module: generator Issue affects the schema generator and federation code type: bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants