Skip to content

Introspection support for deprecated input fields #3104

@tomgasson

Description

@tomgasson

The GraphQL spec supports introspection of args

 type __Field {
-   args: [__InputValue!]!
+  args(includeDeprecated: Boolean = false): [__InputValue!]!
 }
 
  type __InputValue {
+   isDeprecated: Boolean!
 }

This allows clients to continue to see deprecated input args so that things are deprecated but not broken.
Additionally, this can be used by clients to ratchet out usages of the deprecated fields - ensuring no new usages of them

Context:

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