/gqf

Writing GraphQL queries with type safety and type hints, power by TypeScript.

Primary LanguageTypeScriptMIT LicenseMIT

@teages/gqf

npm version npm downloads

Warning

WIP!

The package is fully completed, but unit tests, export names, and some non-major functions may have break change.

Writing GraphQL queries with type safety and type hints, power by TypeScript.

Usage

Install package:

# npm
npm install @teages/gqf

# yarn
yarn add @teages/gqf

# pnpm
pnpm install @teages/gqf

# bun
bun install @teages/gqf

Import:

// ESM
import { useSchema } from '@teages/gqf'
// CommonJS
const { useSchema } = require('@teages/gqf')

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Published under MIT License.