Added deprecation warning output if a deprecation reason exists
Writing deprecation warning to stdout, if a field used in a query is having a deprecation_reason.
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.