-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Regression: Custom graphql directives missing from introspection json in v1.12.0+ #3915
Comments
If you are loading your GraphQL schema from a URL, @falkenhawk am I missing something? |
@dotansimha "directives": [
{
- "name": "testDirective",
- "description": "",
- "locations": [
- "FIELD_DEFINITION"
- ],
- "args": []
- }, |
Maybe it's okay that custom directives are not included anymore (since v1.12.0) in the generated schema json, I can't tell tbh... but it's also confusing that SOME directives are still there ('skip', 'included', 'deprecated' - they are from graphql spec) |
Oh I see, but I'm not sure it's related to codegen. GraphQL has special treatments for those directives you mentioned, that's why they are part of the spec. |
Describe the bug
Regression: Custom graphql directives missing from introspection json in v1.12.0+
To Reproduce
Steps to reproduce the behavior:
https://codesandbox.io/s/awesome-dewdney-bv2wc
# Put your operations here
codegen.yml
config file:diff between 1.11.2 and 1.13.3:
./graphql.schema.json
Expected behavior
custom graphql directives (
testDirective
) back where there should beEnvironment:
@graphql-codegen/...
:Additional context
The text was updated successfully, but these errors were encountered: