A lightweight library (v0.1.0) providing utility functions to compose, transform, and manage GraphQL fragments, originally designed for use with Relay and Apollo. Since v0.1.0 is an early release with limited adoption, it is recommended to check more active alternatives like graphql-anywhere or fragment utilities in Apollo Client. No known release cadence; key differentiator is fragment composition helpers.
npm install graphql-fragmentsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to compose multiple GraphQL fragments into one string using composeFragments.
Migrate to graphql-anywhere or use Apollo Client's fragment utilities.
Manually ensure fragments are compatible or use a more robust fragment composition tool.
Always import from top-level package, not subpaths.
Install package: npm install graphql-fragments. If using Node < 12, use ESM support via --experimental-modules flag or upgrade Node.
Use: import { composeFragments } from 'graphql-fragments';No dependency data recorded yet.