Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added deprecation warning output if a deprecation reason exists #293

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

None yet

1 participant