@pin-pon/nuxt-graphql-playground
v1.2.1
Published
> A Nuxt.js module that injects a server route to serve [the GraphQL Playground](https://github.com/graphql/graphql-playground)
Downloads
19
Readme
@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 # or npm install @pin-pon/nuxt-graphql-playground
- Add
@pin-pon/nuxt-graphql-playground
to themodules
section ofnuxt.config.js
export default {
modules: [
// Simple usage
'@pin-pon/nuxt-graphql-playground',
// With options
['@pin-pon/nuxt-graphql-playground', { /* module options */ }]
]
}
Using top level options
export default {
modules: [
'@pin-pon/nuxt-graphql-playground'
],
gqlPlayground: {
/* module options */
}
}
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
Copyright (c) - Pin Pon SAS