We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec85fb commit 4ca484cCopy full SHA for 4ca484c
graphql_query_derive/src/schema.rs
@@ -280,7 +280,11 @@ impl ::std::convert::From<::introspection_response::IntrospectionResponse> for S
280
use introspection_response::__TypeKind;
281
282
let mut schema = Schema::new();
283
- let root = src.schema.expect("__Schema is not null");
+ let root = src.schema.expect("__schema is not null");
284
+
285
+ schema.query_type = root.query_type.and_then(|ty| ty.name);
286
+ schema.mutation_type = root.mutation_type.and_then(|ty| ty.name);
287
+ schema.subscription_type = root.subscription_type.and_then(|ty| ty.name);
288
289
// Holds which objects implement which interfaces so we can populate GqlInterface#implemented_by later.
290
// It maps interface names to a vec of implementation names.
0 commit comments