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.
addTypename exchange to be agnostic to GQL client #181
Currently, fabrix internally depends on urql, but we have a plan to make it pluggable by #123
Background
__typenameis needed for fabrix to look up the field type, so fabrix has a custom exchange (addTypename) for urql to add__typenameautomatically.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.