Skip to content

[Idea] Opinionated (graphql) transformer #34

@emmenko

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.

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