//nitro-graphqlbyproductdevbook

nitro-graphql

A standalone Nitro module that integrates GraphQL servers into any Nitro application with automatic type generation, file watching, and seamless framework integration.

120
5
120
9
TypeScript
Nitro GraphQL Logo

Nitro GraphQL

npm version
Beta Status
npm downloads
Coverage
License
Documentation

undefinedThe easiest way to add GraphQL to any Nitro applicationundefined

Documentation | Examples | Playgrounds

[!IMPORTANT]
undefinedv2.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

[beta]v0.14.0