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): skip fieldset validation when it includes type reference #1861

Merged
merged 1 commit into from Oct 30, 2023

Conversation

dariuszkuc
Copy link
Collaborator

📝 Description

We are performing federated directive validations when generating GraphQL schema. This is an extra convenience as it gives us information about invalid schema sooner. Subgraph schemas will then be re-validated during the supergraph composition logic.

Currently it is possible to create @key that references the type still under construction (GraphQLReferenceType). Since we cannot validate fields on the type that doesn't exist yet, we cannot validate it either. Updating logic to log a warning when this happens and skip validation logic.

🔗 Related Issues

Resolves: #1858

…ence

We are performing federated directive validations when generating GraphQL schema. This is an extra convenience as it gives us information about invalid schema sooner. Subgraph schemas will then be re-validated during the supergraph composition logic.

Currently it is possible to create `@key` that references the type still under construction (`GraphQLReferenceType`). Since we cannot validate fields on the type that doesn't exist yet, we cannot validate it either. Updating logic to log a warning when this happens and skip validation logic.
@dariuszkuc dariuszkuc added the changes: patch Changes require a patch version label Oct 8, 2023
@samuelAndalon samuelAndalon self-requested a review October 30, 2023 16:58
@dariuszkuc dariuszkuc merged commit 716809e into ExpediaGroup:master Oct 30, 2023
10 of 13 checks passed
@dariuszkuc dariuszkuc deleted the keyset_reference branch October 30, 2023 17:00
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
2 participants