gql-dedup
JSON →A drop-in replacement for graphql-tag that automatically deduplicates fragments when composing GraphQL queries. Version 1.0.3 is current and stable, with no significant release cadence. Unlike graphql-tag, which throws duplicate fragment errors, gql-dedup safely includes each fragment only once, enabling reusable fragment composition across deeply nested dependencies. Ships TypeScript types and requires graphql-tag ^2.0.0 and graphql ^14.0.0 as peer dependencies. Ideal for Apollo Client projects that share fragments across multiple queries.
Resources
packagegql-dedup ↗