Open
Description
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 }
, the execute_non_introspection_parts
function is being called.
Expected result
SchemaIntrospectionQuery::split_and_execute
should solve the query { __typename }
and return the following:
{
"data": {
"__typename": "Query"
}
}
Actual result
The code panic as the following function is being called:
|_| panic!("Provided query must not have non-introspection elements")
Environment
- apollo-compiler = "=1.0.0-beta.17"