Skip to content
v1.5.1 Released

The GraphQL Integration
for Nitro

Auto-discovery, type generation, and zero config GraphQL setup for Nitro and Nuxt applications.

Input
Schemas
Resolvers
Nitro GraphQL
Auto-DiscoveryType GenerationZero Config
Output
Generated
GraphQL Ready

Experience the power

From GraphQL schema to fully-typed resolvers and queries in seconds

Powerful features out of the box

Everything you need for modern GraphQL development

Auto-Discovery
Automatically discovers GraphQL schemas and resolvers - just drop your .graphql files and start coding!
Type Generation
Automatic TypeScript type generation for both server and client - full type safety out of the box.
JSON
CSS3
Javascript
Typescript
PostCSS
Zero Config
Start building immediately with sensible defaults - no complex setup or configuration required.
Framework Agnostic
Works seamlessly with both GraphQL Yoga and Apollo Server - choose the framework that fits your needs.

Before vs After

See how Nitro GraphQL simplifies your workflow

1
📝

Install dependencies

graphql, @graphql-tools/schema, @graphql-tools/load-files...

2
⚙️

Configure server

Set up GraphQL server, context, error handling

3
📦

Build schema

Manually combine type definitions and resolvers

4
🔧

Setup type generation

Configure GraphQL Codegen with multiple plugins

5
🔄

Watch for changes

Set up file watchers for schema regeneration

6
📱

Configure client

Set up GraphQL client with typed operations

Built for the real world

Custom Directives
Extend GraphQL with custom directives for authorization, validation, formatting and more.
import { createServer } from 'vite'

const server = await createServer({
   // user config options
})
await server.listen()
server.printUrls()
(method) ViteDevServer.listen(port?: number | undefined, isRestart?: boolean | undefined): Promise<ViteDevServer>
Start the server.
Fully Typed API
End-to-end type safety from schema to resolvers to client queries.
.JSClient transformServer transform
Nuxt Integration
First-class support for Nuxt with automatic client-side type generation and seamless SSR integration.
CI Tests
External Services
Connect to external GraphQL APIs with automatic type generation and built-in client utilities.

Built on modern tools

Integrates seamlessly with the ecosystem you already love

Nitro

Built on Nitro for blazing-fast server performance

Nuxt

First-class Nuxt integration with automatic type generation

H3

Powered by H3 event context for seamless server integration

GraphQL Yoga

Default GraphQL server with powerful features

Apollo Server

Apollo Server support with federation capabilities

TypeScript

End-to-end type safety with automatic type generation

Loved by developers

Don't take our word for it - see what developers are saying about Nitro GraphQL.

Nitro Team
Nitro Team@unjsio

Nitro GraphQL provides a seamless GraphQL integration that just works. The auto-discovery and type generation features make it incredibly easy to build type-safe GraphQL APIs.

GraphQL Community
GraphQL Community@graphql

A fantastic tool that brings the power of GraphQL to Nitro applications with zero configuration needed.

Nuxt Community
Nuxt Community@nuxt_js

Nitro GraphQL makes adding GraphQL to Nuxt applications a breeze. The type generation works perfectly with our setup.

Developer
Developer@developer

The auto-discovery feature is game-changing. No more manual schema stitching or complex setup. Just drop your .graphql files and you're ready to go.

Full Stack Dev
Full Stack Dev@fullstack

Type generation for both server and client is incredibly powerful. Our frontend and backend teams love the type safety it provides.

Tech Lead
Tech Lead@techlead

Nitro GraphQL has significantly improved our development workflow and code quality.

Start building with Nitro GraphQL

Experience GraphQL development the way it should be - simple, type-safe, and powerful.

Get started

Released under the MIT License.