-
Notifications
You must be signed in to change notification settings - Fork 527
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
Mix.Tasks.Absinthe.Schema.Json nolonger includes deprecated input fields #1327
Comments
We found that default values for For example:
|
Our solution was to copy the introspection.graphql file to our own repo and explicitly add |
We just ran into this after updating from 1.7.6 to 1.7.8 - this feels like a major breaking change since it now hard-removes deprecated fields from the schema. This sort of bypasses the reason to use deprecation in the first place - since the effect is equivalent to just deleting the field entirely. @benwilson512 this change was also not documented anywhere in the CHANGELOG for 1.7.7 which feels risky? |
Hey @rossvz as implied by the earlier comments, this appears to be a bug, not an intended change. I do not have time to look into this this week but am happy to review any PRs that take a swing at resolving the issue. |
@jgautsch I'm curious if you have ideas here, I think you were the author for #1291. Is there anything we need to add on the absinthe side to make this work? We're using graphql-codegen to generate schema files for our Apollo client, but nothing on the client config side seems to get these fields to appear. |
@rossvz aside from that PR I'm distant from it enough to probably not be of much help. It looks like setting the default value for |
@benwilson512 Is there anything else that needs to be done to get #1333 reviewed and merged in to resolve this? |
If submitting a bug, please provide the following:
Environment
Elixir version (elixir -v):
Erlang/OTP 25 [erts-13.2.2.4] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1]
Elixir 1.14.1 (compiled with Erlang/OTP 25)
Absinthe version (mix deps | grep absinthe):
absinthe 1.7.7 (Hex package) (mix)
locked at 1.7.7 (absinthe) 21455198
Client Framework and version (Relay, Apollo, etc):
Expected behavior
In prior versions, when running
the generated schema.json file would contain input fields that were marked as deprecated.
Actual behavior
In this version, running the same task omits the deprecated input fields.
No errors are display.
Relevant Schema/Middleware Code
Hacking the absinthe/priv/graphql/introspection.graphql file at line 44 to be
inputFields(includeDeprecated: true) {
instead of justinputFields {
adds back the deprecated input fields.The text was updated successfully, but these errors were encountered: