A Nuxt.js module that injects a server route to serve the GraphQL Playground
@pin-pon/nuxt-graphql-playground dependency to your projectyarn add @pin-pon/nuxt-graphql-playground # or npm install @pin-pon/nuxt-graphql-playground
@pin-pon/nuxt-graphql-playground to the modules section of nuxt.config.jsexport default {
modules: [
// Simple usage
'@pin-pon/nuxt-graphql-playground',
// With options
['@pin-pon/nuxt-graphql-playground', { /* module options */ }]
]
}
export default {
modules: [
'@pin-pon/nuxt-graphql-playground'
],
gqlPlayground: {
/* module options */
}
}
The GraphQL server endpoint (can be absolute)
String/api/graphqlThe path where the playground should be server
String/api/playgroundCopyright (c) - Pin Pon SAS