Skip to content

Debugging

The module offers several ways to make it easier to debug GraphQL queries and mutations.

Nuxt DevTools

You can inspect queries, mutations and fragments within Nuxt DevTools. Look for the GraphQL Middleware tab.

Screenshot of the Nuxt DevTools integration

Debug Server Route

There is a server route available during development that outputs all queries and mutations.

Screenshot of the debug endpoint

Output compiled queries and mutations

If you set the outputDocuments option to true the module will output all compiled documents in the build folder: ./.nuxt/nuxt-graphql-middleware/documents.

Released under the MIT License.