EasyGraphQL / easygraphql-tester

Test GraphQL queries, mutations and schemas on an easy way! 🚀
https://easygraphql.com/docs/easygraphql-tester/overview
MIT License
313 stars 34 forks source link

Support for GraphQL Unions - TypeError: Cannot read property 'type' of undefined #143

Open tatejones opened 3 years ago

tatejones commented 3 years ago

From the code it looks like it expects all types to have fields. The GraphQLUnionType does not support fields, but the getTypes() on this type would expose each type with these fields.

In the validate fixture I could flatten the types in fields to expand the fields available for validating.

..line 89

If I get time next week I will create a unit test for this.