Installation
- Add
@gqfn/nuxt
dependency to your project
bash
# ✨ Auto-detect
npx nypm install @gqfn/nuxt
bash
# Using npm
npm install @gqfn/nuxt
bash
# Using yarn
yarn add @gqfn/nuxt
bash
# Using pnpm
pnpm add @gqfn/nuxt
bash
# Using bun
bun install @gqfn/nuxt
- Add
@gqfn/nuxt
to themodules
section ofnuxt.config.ts
, and configure it:
ts
export default defineNuxtConfig({
modules: [
'@gqfn/nuxt'
],
gqfn: {
clients: [
'https://your-graphql-endpoint',
],
},
})
That's all, now you can use useSchema
in your nuxt app.
TIP
We will release the module to Nuxt Modules soon.