-
Notifications
You must be signed in to change notification settings - Fork 530
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
Support deprecated input object fields in introspection query (fixes #1241) #1291
Support deprecated input object fields in introspection query (fixes #1241) #1291
Conversation
Fixes #1241 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thanks for taking this on! I have those minor code tweaks and otherwise this looks good to go.
Because `!is_deprecated || (is_deprecated && show_deprecated)` is equivalent to just `!is_deprecated || show_deprecated`
@benwilson512 Good callout– updated PR. There was another existing chunk following the same Thanks for creating & maintaining absinthe! It's wonderful. |
@benwilson512 lmk if there are any other improvements you'd see prior to merging |
@benwilson512 any other changes you'd suggest prior to being able to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I was setting up Apollo iOS in a new mobile app project, hoping to have it talk to my absinthe API. Apollo introspects the schema to generate types, however the introspection query wasn't processable by absinthe.
The issue was the
(includeDeprecated: true)
param passed to various fields includinginputFields
.The
includeDeprecated
arg for input fields was merged into the graphql spec back in Aug 2022.This PR brings absinthe up to support that arg, and makes Apollo's introspection query work.
Feedback welcome!