Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Remove addTypename exchange to be agnostic to GQL client #181

Description

@IzumiSy

Currently, fabrix internally depends on urql, but we have a plan to make it pluggable by #123


Background

__typename is needed for fabrix to look up the field type, so fabrix has a custom exchange (addTypename) for urql to add __typename automatically.

https://github.com/fabrix-framework/fabrix/blob/main/packages/fabrix/src/exchanges/addTypename.ts

However, to be agnostic to GQL client, it should be handled independently in the layer of GraphQL visitor instead of exchanges.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions