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

Add Apollo Federation @tag directive support #1038

Merged
merged 3 commits into from Aug 22, 2022

Conversation

nmoutschen
Copy link
Contributor

This adds the Apollo Federation @tag directive support to all supported locations (FIELD_DEFINITION, INTERFACE, OBJECT, UNION, ARGUMENT_DEFINITION, SCALAR, ENUM, ENUM_VALUE, INPUT_OBJECT, INPUT_FIELD_DEFINITION) with this, the only piece missing for #982 is the @link directive at the top of the schema.

write!(sdl, "@inaccessible ").ok();
if options.federation {
if *inaccessible {
write!(sdl, "@inaccessible ").ok();
Copy link
Contributor

Choose a reason for hiding this comment

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

btw this other MR #1036 wants to change this line (and the write a few lines above) to move the space to the front.

@sunli829 sunli829 merged commit 722ba08 into async-graphql:master Aug 22, 2022
@sunli829
Copy link
Collaborator

Thanks!❤️

@nmoutschen nmoutschen deleted the fed2-tag branch August 22, 2022 15:09
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.

None yet

3 participants