gql-svr
v0.1.5
Published
A tiny Node.js loader for `.gql/.graphql` files that supports `#import` and validates fragment usage.
Readme
gql-svr
A tiny Node.js loader for .gql/.graphql files that supports #import and validates fragment usage.
- ✅
#importGraphQL files (relative paths) - ✅ Bundles into a single GraphQL document string
- ✅ Prevents circular imports
- ✅ Detects unused fragments and throws (fail fast)
Install
npm i gql-svr
# or
yarn add gql-svr
# or
pnpm add gql-svr