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: './',
}),
],
})
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
- Documentation
- Examples - Real-world integrations (Drizzle ORM, etc.)
- Playgrounds - Development environments
- GitHub Issues
Sponsors
License
MIT License (c) 2023 productdevbook