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… #1795

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

…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
@codesandbox-ci
Copy link

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.

@pcmanus
Copy link
Contributor Author

pcmanus commented Apr 28, 2022

Note: currently based on the branch of #1785 because that latter branch adds a (skipped) test for this, which this commit reuse (un-skipping it). And #1795 is ready to be merged, so I'll rebase this as soon as it's been effectively merged.

@benweatherman
Copy link
Contributor

Sorry, looks like github auto-closed this when the base branch got deleted. I don't seem to be able to change the branch or reopen this.

@pcmanus
Copy link
Contributor Author

pcmanus commented Apr 28, 2022

Yeah, somehow I'm failing at resurrecting this as well. Well, no matter, I created #1797 to replace it with the commit rebased on main.

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