dotansimha / dotansimha/graphql-code-generator
schema-ast should pull deprecation notices about enums
- Dominant language
- TypeScript
- Stars
- 11.3k
- Forks
- 1.4k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
**Is your feature request related to a problem? Please describe.**
If the origin schema has deprecated members of enums (e.g. below), then it should be reflected in the generated schema.
```graphql
enum BasicOpportunityPositionType {
CONTRACT @deprecated(reason: "Use LONG_TERM and SHORT_TERM instead.")
FULL_TIME @deprecated(reason: "Use LONG_TERM and SHORT_TERM instead.")
INTERNSHIP @deprecated(reason: "Use LONG_TERM and SHORT_TERM instead.")
LONG_TERM
PART_TIME @deprecated(reason: "Use LONG_TERM and SHORT_TERM instead.")
SHORT_TERM
}
```
Currently, deprecations are not reflected in the schema:
```graphql
enum BasicOpportunityPositionType {
CONTRACT
FULL_TIME
INTERNSHIP
LONG_TERM
PART_TIME
SHORT_TERM
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.