Shopify / graphql-js-schema

Transforms the JSON representation of a GraphQL schema into a set of ES6 type modules
MIT License
35 stars 12 forks source link

Specify root types #14

Closed jamesmacaulay closed 7 years ago

jamesmacaulay commented 7 years ago

@minasmart please review.

This alters the structure of the type bundle to include queryType, mutationType, and subscriptionType in the output. This is necessary because not all valid schemas use the conventional QueryRoot etc.

In order to accommodate the added fields, the type dictionary itself is nested under a types property.