amplify codegen
Ignores @deprecated
Directive In GraphQL Schema
#863
Labels
feature-request
New feature or request
transferred
Issue has been transferred from another Amplify repository
Is this feature request related to a new or existing Amplify category?
api
Is this related to another service?
AppSync
Describe the feature you'd like to request
When I made some fields deprecated by adding
@deprecated
directive inschema.graphql
, these deprecations are ignored in autogeneratedsrc/API.ts
file.For example,
turns into this
though I hope like this.
In the current situation, we can't notice the use of deprecated fields so that unexpected deletion of field might occur. Are there any alternative solution for this? If not, I strongly hope the implementation of this feature.
Describe the solution you'd like
Explicit marker of deprecated fields.
Describe alternatives you've considered
Nothing especially.
Additional context
No response
Is this something that you'd be interested in working on?
Would this feature include a breaking change?
The text was updated successfully, but these errors were encountered: