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 applying auto-imported federation directive on other directive de… #1797

Merged
merged 2 commits into from
Apr 29, 2022

Conversation

pcmanus
Copy link
Contributor

@pcmanus pcmanus commented Apr 28, 2022

…finition

For subgraphs, applying an auto-imported federation directive (say
@tag) to another directive definition argument was triggering a
non-sensical error. That is because we want trying to handle such
directive application before we had properly auto-imported its
definition.

This patch ensure we delay the building of such directive application
to after the auto-importing mechanism has been performed.

Fixes #1794

@netlify
Copy link

netlify bot commented Apr 28, 2022

👷 Deploy request for apollo-federation-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit cbe7a1b

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 28, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

@benweatherman benweatherman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐐

Sylvain Lebresne added 2 commits April 29, 2022 11:24
…finition

For subgraphs, applying an auto-imported federation directive (say
`@tag`) to another directive definition argument was triggering a
non-sensical error. That is because we want trying to handle such
directive application _before_ we had properly auto-imported its
definition.

This patch ensure we delay the building of such directive application
to after the auto-importing mechanism has been performed.

Fixes apollographql#1794
@pcmanus pcmanus merged commit 18913a3 into apollographql:main Apr 29, 2022
This was referenced Apr 29, 2022
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.

Cannot compose schema with a directive declaration that applies federation @tag
2 participants