Skip to content

Introspection support for deprecated input fields #3104

Closed

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:

Activity

  1. andimarek commented on Mar 2, 2023

    @andimarek
    Member

    Hey @tomgasson ... would you be willing to contribute a PR to implement it? That would be awesome.

  2. bbakerman commented on Mar 2, 2023

    @bbakerman
    Member

    This has already been reported - by you @andimarek

    #1770

    and implemented in

    #2186

    I have double checked it and its working as expected, on fields and arguments and input fields and enums

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