-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Custom directives are stripped during schema printting? #1072
Comments
There were an answer on this: |
Other custom directives will be included. I've just added a test which confirms this |
leebyron
added a commit
that referenced
this issue
Dec 7, 2017
leebyron
pushed a commit
that referenced
this issue
Dec 7, 2017
* Include test that printSchema includes non-spec directives. Closes #1072 * fix broken link on README.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to understand why my custom GraphQL directives are stripped when
printSchema
is executed (also using ``).Found this line of code (
isSpecDirective
):graphql-js/src/utilities/schemaPrinter.js
Lines 33 to 43 in 4f5e351
Is there a reason for removing custom directives? I understand the
@deprecated
is a special directive and it effects more than just the docs, but I want to implement a custom directive such asskip
orinclude
- but the printer/introspection removes them.The text was updated successfully, but these errors were encountered: