Skip to content

Installation

  1. 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
  1. Add @gqfn/nuxt to the modules section of nuxt.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.