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

Expose type system directives in introspection #1189

Conversation

maartenvanvliet
Copy link
Contributor

Previously type system directives such as deprecated or those created by users were not available in introspection. The spec itself is not really clear in this but afaict they should be exposed.

I've checked out the reference ](https://44c20.sse.codesandbox.io/?query=query%20%7B%0A%20%20__schema%7B%0A%20%20%20%20directives%20%7B%0A%20%20%20%20%20%20name%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A)`graphql` implementation and it does expose the type system directives.

This PR adds a phase to add the prototype directive list to the schema directive list so they are available through introspection. In the prototype schema itself this phase is skipped to prevent an infinite loop.

@benwilson512 benwilson512 merged commit 03be990 into absinthe-graphql:master Sep 6, 2022
@benwilson512
Copy link
Contributor

Thank you!

@maartenvanvliet maartenvanvliet deleted the expose-type-system-directives-introspection branch May 5, 2023 17:32
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.

3 participants