Is your feature request related to a problem? Please describe.
At the moment 98% of our graphql transformers use the addFields to set the __typename.
Describe the solution you'd like
Maybe we should provide a preconfigured graphql transformer that always sets the __typename.
For example:
Transformer.graphql('Author')
Transformer.graphql('Author', {
buildFields: ['books'],
})
Describe alternatives you've considered
Instead of Transformer.graphql, we can have a GraphqlTransformer.
Is your feature request related to a problem? Please describe.
At the moment 98% of our graphql transformers use the
addFieldsto set the__typename.Describe the solution you'd like
Maybe we should provide a preconfigured graphql transformer that always sets the
__typename.For example:
Describe alternatives you've considered
Instead of
Transformer.graphql, we can have aGraphqlTransformer.