-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Labels
apollo-compilerissues/PRs pertaining to semantic analysis & validationissues/PRs pertaining to semantic analysis & validationintrospectiontriage
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"
Metadata
Metadata
Assignees
Labels
apollo-compilerissues/PRs pertaining to semantic analysis & validationissues/PRs pertaining to semantic analysis & validationintrospectiontriage