@gqfn/core
v0.4.1
Published
Writing GraphQL queries with type safety and type hints, power by TypeScript.
Downloads
74
Readme
@gqfn/core
GQFn provides a typed way to write GraphQL queries with the help of TypeScript.
Usage
Install package:
# ✨ Auto-detect
npx nypm i @gqfn/core
# npm
npm install @gqfn/core
# yarn
yarn add @gqfn/core
# pnpm
pnpm install @gqfn/core
# bun
bun install @gqfn/core
Import:
// ESM
import { useSchema } from '@gqfn/core'
// CommonJS
const { useSchema } = require('@gqfn/core')
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.