Installation
Install package:
bash
# ✨ Auto-detect
npx nypm install @gqfn/corebash
npm install @gqfn/corebash
yarn add @gqfn/corebash
pnpm install @gqfn/corebash
bun install @gqfn/coreThat's it! You can now use GQFn in your project.
typescript
import { useSchema } from '@gqfn/core'
const schema = useSchema()
/**
* ```graphql
* query SayHello {
* hello
* }
* ```
*/
const query = schema.gqfn('query SayHello', ['hello'])What's next?
By default GQFn have no schema. It will only provide the basic checks. To use GQFn with a GraphQL schema, you need to add a schema URL, check out the guide: Prepare Schema.