joarwilk / gql2flow

Convert a GraphQL Schema to a flow definition
97 stars 24 forks source link

Whats the reason for `__typename`? #17

Closed gajus closed 7 years ago

gajus commented 7 years ago

I'd like to use the generated Flow types in my resolvers. Resolvers do not return __typename field; it is an internal field. Whats the reason for including it in the output?

gajus commented 7 years ago

It would be at least nice to have an option to exclude it.

joarwilk commented 7 years ago

I agree, __typename shouldnt be there. Removed in latest version (0.4.0)