graphql-tools icon indicating copy to clipboard operation
graphql-tools copied to clipboard

Deprecated enum values are not handled

Open CarsonF opened this issue 3 years ago • 0 comments

Describe the bug

Schema:

enum Color {
  Red @deprecated(reason: "Blue is better")
  Blue
}

Whenever my graphql code gen gives me GraphQLSchema object (I think from the File/UrlLoader) the enum value is missing the deprecated directive.

To Reproduce Steps to reproduce the behavior:

Expected behavior

Environment:

  • OS:
  • @graphql-tools/...: @graphql-tools/utils@npm:8.6.3
  • NodeJS:

Additional context

CarsonF avatar Mar 29 '22 00:03 CarsonF