Skip to content

Latest commit

 

History

History
86 lines (64 loc) · 2.93 KB

File metadata and controls

86 lines (64 loc) · 2.93 KB
Nitro GraphQL Logo

Nitro GraphQL

npm version Beta Status npm downloads Coverage License Documentation

The easiest way to add GraphQL to any Nitro application

Documentation | Examples | Playgrounds

Important

v2.0 Beta - Nitro v3 / H3 v2 support. For v1.x (Nitro v2), see the v1 branch.

Quick Start

npx nitro-graphql@beta init my-app -t nitro

Available templates: nitro, vite, vite-react, vite-vue, drizzle-orm, better-auth

Manual Installation

pnpm add nitro-graphql@beta graphql-yoga graphql graphql-config
// nitro.config.ts
import { defineConfig } from 'nitro'
import graphql from 'nitro-graphql'

export default defineConfig({
  serverDir: './',
  modules: [
    graphql({
      framework: 'graphql-yoga',
      serverDir: './',
    }),
  ],
})

See the documentation for Nuxt and Vite setup.

Resources

Sponsors

License

MIT License © 2023 productdevbook