Skip to content

Conversation

@AdunSG
Copy link

@AdunSG AdunSG commented May 13, 2024

Writing deprecation warning to stdout, if a field used in a query is having a deprecation_reason.

@AdunSG
Copy link
Author

AdunSG commented May 13, 2024

UseCase:
I pull the schema using introspection query as already provided by ariadne-codegen.
Now i'd like my pipeline doing that in production to fail, if i'm generating code for a query, which has deprecated fields.
This enables me to react fast to a change of the graphQL API of the host service i'm using.

Remark:
For this i'm willing to parse the stdout of the ariadne-codegen for generated DeprecationMessages.
But of course the neatest way would be having a ariade-codegen setting fail_on_deprecation.
If you like and support this idea, i will create another PR including the new setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant