@pin-pon/nuxt-graphql-playground
A Nuxt.js module that injects a server route to serve the GraphQL Playground
Setup
- Add
@pin-pon/nuxt-graphql-playground
dependency to your project
yarn add @pin-pon/nuxt-graphql-playground
- Add
@pin-pon/nuxt-graphql-playground
to the modules
section of nuxt.config.js
export default {
modules: [
'@pin-pon/nuxt-graphql-playground',
['@pin-pon/nuxt-graphql-playground', { }]
]
}
Using top level options
export default {
modules: [
'@pin-pon/nuxt-graphql-playground'
],
gqlPlayground: {
}
}
Options
endpoint
The GraphQL server endpoint (can be absolute)
- Type:
String
- Default:
/api/graphql
route
The path where the playground should be server
- Type:
String
- Default:
/api/playground
License
MIT License
Copyright (c) - Pin Pon SAS