1.2.1 • Published 3 years ago

@pin-pon/nuxt-graphql-playground v1.2.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@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

1.2.0

3 years ago

1.1.1

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago