We ran into a problem recently with graphql-protect, used to protect an apollo-router GraphQL API.
The latest apollo-router supports a draft version of the spec, that adds support for deprecated input values: graphql/graphql-spec#805
Currently gqlparser support is still at the 2018 spec, resulting in errors when a client requests introspection fields like isDeprecated and deprecationReason on the __InputValue.
To fix this the prelude.graphql should be updated to include the draft introspection schema. Next to that, there are a few updated validation rules that need adoption as well.
We ran into a problem recently with graphql-protect, used to protect an apollo-router GraphQL API.
The latest apollo-router supports a draft version of the spec, that adds support for deprecated input values: graphql/graphql-spec#805
Currently gqlparser support is still at the 2018 spec, resulting in errors when a client requests introspection fields like
isDeprecatedanddeprecationReasonon the__InputValue.To fix this the
prelude.graphqlshould be updated to include the draft introspection schema. Next to that, there are a few updated validation rules that need adoption as well.