-
-
Notifications
You must be signed in to change notification settings - Fork 326
Description
Description
Hello,
I made a Nuxt module for using GraphQL with a lot of cool features + a great DX and I think it might be mature enough to be listed on the Nuxt website!
This module provides a fully type-safe, SSR-first GraphQL setup for Nuxt, built on GraphQL Yoga. It offers a ready-to-use /api/graphql endpoint with GraphiQL in development, SSE subscriptions, and a stitched schema composed from local and/or remote schemas with build-time introspection. .gql documents are compiled into typed document nodes by GraphQL Codegen, enabling operation-name driven, type-safe helpers for queries, mutations, and subscriptions that work seamlessly across client and server routes (no subscriptions on server routes evidently). The module is SSR-friendly by default with automatic headers forwarding, supports configurable query caching with optional persistence to localStorage, and exposes flexible hooks for remote executors.
Let me know what you think, any feedback is very much welcomed !
Repository
https://github.com/lewebsimple/nuxt-graphql
npm
https://www.npmjs.com/package/@lewebsimple/nuxt-graphql
Nuxt Compatibility
Nuxt 4, Nuxt 3