Skip to content

productdevbook/nitro-graphql

Repository files navigation

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

About

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

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors