Skip to content

[Idea] Opinionated (graphql) transformer #34

Description

@emmenko

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions