Skip to content

Commit

Permalink
Fix Panic on Introspection of Schema using ToJSON
Browse files Browse the repository at this point in the history
Introspection via ToJSON works differently when used via the
 `Schema.ToJSON` function than when making an introspection query from a
 client such as GraphiQL. In the later case, introspection uses the
 Schema's registered resolver, while in the former case, a
 `resolvable.Schema` is faked

Without the `Meta` being set on this `resolvable.Schema` (following the
 recent changes to address race conditions around the Meta schema), this
 resulted in a panic when using this form of schema introspection.
  • Loading branch information
dackroyd committed May 8, 2019
1 parent b068bc1 commit e571531
Show file tree
Hide file tree
Showing 4 changed files with 3,457 additions and 0 deletions.
Loading

0 comments on commit e571531

Please sign in to comment.