prisma-labs / get-graphql-schema

Fetch and print the GraphQL schema from a GraphQL HTTP endpoint. (Can be used for Relay Modern.)
669 stars 62 forks source link

Include depreciated input values in introspection query #66

Open mdnorman opened 2 years ago

mdnorman commented 2 years ago

Currently, the default introspection query ignores any deprecated arguments for query and mutation inputs. Because they are excluded in the introspection query, the server won't even return them as potential values when saving the schema. When a value is deprecated, it should be available along with the deprecation reason since that will typically have instructions about other arguments to use instead so you can slowly migrate your code over to the new values.