@pin-pon/nuxt-graphql-playground
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

@pin-pon/nuxt-graphql-playground

A Nuxt.js module that injects a server route to serve the GraphQL Playground

Setup

  1. 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
  1. Add @pin-pon/nuxt-graphql-playground to the modules section of nuxt.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

MIT License

Copyright (c) - Pin Pon SAS

Readme

Keywords

none

Package Sidebar

Install

npm i @pin-pon/nuxt-graphql-playground

Weekly Downloads

9

Version

1.2.1

License

MIT

Unpacked Size

5.01 kB

Total Files

10

Last publish

Collaborators

  • tuarrep