0no-co / gql.tada

🪄 Magical GraphQL query engine for TypeScript
https://gql-tada.0no.co
MIT License
2.52k stars 41 forks source link

fix: add support for detecting argument deprecation #191

Closed JoviDeCroock closed 4 months ago

JoviDeCroock commented 4 months ago

Resolves https://github.com/0no-co/gql.tada/issues/189

Summary

It looks like InputValueDeprecation does not necessarily mean argument deprecation, the safe way to find this would be to look at the locations the directive can be specified on.

Hence our query now adds in

schema: __schema { directives { name locations } }

EDIT: I realised that both args and input-values are of type __InputValue which would be a really odd inconsistency in datocms

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: f94edbdddc965bdbe6a6505f295ddfd7d42dc6c7

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

JoviDeCroock commented 4 months ago

Issue in question just has a non-spec compliant server I think