Easy GraphQL server implementation for Nuxt 3 with automatic schema merging from .graphql files, typed resolvers via virtual modules, WebSocket subscription support, and Nuxt Devtools integration featuring Apollo Studio Sandbox. Current stable version is 3.1.6, with regular releases on npm. Requires Node >=18.12.0 and peer dependency graphql ^16.7.1. Differentiator: native Nuxt 3 module with zero-config setup, virtual module imports, and devtool integration.
npm install nuxt-graphql-serverNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up a minimal GraphQL server in Nuxt 3 with typed resolvers and auto-merged schema.
Add `modules: ['nuxt-graphql-server']` to nuxt.config.ts.
Place .graphql files inside `server/` (e.g., `server/schema.graphql`).
Upgrade to Nuxt 3 or use nuxt-graphql-server v2 for Nuxt 2.
Install graphql-redis-subscriptions or similar and configure PubSub with external store.
Add experimental websocket config and install extra dependencies.
Ensure `modules: ['nuxt-graphql-server']` is in nuxt.config.ts and the package is installed. Restart Nuxt dev server.
Run `npm install graphql` or add it to package.json.
Check that .graphql files exist in the `server/` directory with valid GraphQL syntax.
Add `nitro: { experimental: { websocket: true } }` to nuxt.config.ts.