@gqfn/nuxt
v0.4.1
Published
A Nuxt binding for @gqfn/core
Downloads
58
Readme
@gqfn/nuxt
The Nuxt binding for @gqfn/core.
Features
- 🔒 Write queries with type safety and type hints.
- 🚀 No need to scan your source code, no code generation during HMR.
- ❤️ he experience of using gqfn is very similar to writing plain GraphQL queries.
- 🌐 Working for most clients with TypedDocumentNode.
Quick Setup
- Add
@gqfn/nuxt
dependency to your project
# ✨ Auto-detect
npx nypm install @gqfn/nuxt
# Using npm
npm install @gqfn/nuxt
# Using yarn
yarn add @gqfn/nuxt
# Using pnpm
pnpm add @gqfn/nuxt
# Using bun
bun install @gqfn/nuxt
- Add
@gqfn/nuxt
to themodules
section ofnuxt.config.ts
, and configure it:
export default defineNuxtConfig({
modules: [
'@gqfn/nuxt'
],
gqfn: {
clients: [
'https://your-graphql-endpoint',
],
},
})
Contribution
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release