-
Notifications
You must be signed in to change notification settings - Fork 42
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
Consider resolving root __typename as schema introspection #867
Comments
This intentional, but we can consider changing it. Type name introspection is separate from Schema introspection in the spec, and the name Specifically at the root of an operation however, because all root operation types must be object types (not interface or union), |
Thanks for the explanation, it makes perfect sense. And I guess that |
The concept of a |
Description
SchemaIntrospectionQuery::split_and_execute
cannot solve the query{ __typename }
Steps to reproduce
I'm playing with the introspection with a code similiar to https://github.com/apollographql/apollo-rs/pull/859/files
When I use a query like
{ __schema { types { name } } }
, everything is working fine.When I use the query
{ __typename }
, theexecute_non_introspection_parts
function is being called.Expected result
SchemaIntrospectionQuery::split_and_execute
should solve the query{ __typename }
and return the following:Actual result
The code panic as the following function is being called:
https://github.com/apollographql/apollo-rs/pull/859/files#diff-6416f1ff6c1a61aa6817f3430bcde09ca29f1fdb819603a5058d7991a33adfd1R42
Environment
The text was updated successfully, but these errors were encountered: