Skip to content

Support deprecation of input fields on input types #410

Description

@swkrn

Hi,

The GraphQL spec now allows the deprecation of input fields on input types, as shown below:

input I {
    a: String
    d: String @deprecated(reason: "Please don't")
}

Ref: graphql/graphql-spec@94f73f4

It would be great if this library supported @Deprecatedannotations for input fields.

Generated code:

class Input$I {
  factory Input$I({String? a, @Deprecated('Please don\'t') String? d}) => ...
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions