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

freeze possibleTypes array for interfaces #18

Closed jamesmacaulay closed 7 years ago

jamesmacaulay commented 7 years ago

@minasmart please review.

This does an Object.freeze on each type's possibleTypes property. This property only exists on interfaces, so when the template generation gets refactored it should be made smarter about only freezing the property when it's present.