introspection: create a graphql schema from introspection query with GraphQLClientSchema::new #171
Labels
feature 🎉
new commands, flags, functionality, and improved error messages
Milestone
Description
Given a result from an Introspection Query, we should be able to construct a
GraphQLClientSchema
.Detailed design
GraphQLClientSchema::new
should be an implementation of whatbuildClientSchema
does in graphql-js. That is, given an introspection result:Traverse all available types in result's
__schema
and get their type definitionsInclude only
Scalar
andIntrospection
types that are present in the query resultInclude root
Query
,Mutation
, andSubscription
typesInclude introspection supported
Directives
Construct a
Schema
object with the following definitions:Test plan
To ensure our generated SDL is inline with javascript's reference implementation, we need to implement all of the test cases in listed in
graphql-js/buildClientSchema
.References
Schema
type.This issue is part of introspection work discussed in this internal scope document.
The text was updated successfully, but these errors were encountered: