Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saifadin/gatsby-plugin-playground

A gatsby plugin to use Prisma Playground
https://github.com/saifadin/gatsby-plugin-playground

gatsby gatsby-plugin graphql playground prisma

Last synced: 3 months ago
JSON representation

A gatsby plugin to use Prisma Playground

Awesome Lists containing this project

README

        

# gatsby-plugin-playground

*⚠️ Disclaimer: Playground has been added as an experimental feature behind a flag by this PR [11193](https://github.com/gatsbyjs/gatsby/pull/11193). To use it without this lib, add `GATSBY_GRAPHQL_IDE=playground` as an environment variable and you should see it at the same route, where GraphiQL used to be.*

Adds the [Prisma playground](https://github.com/prisma/graphql-playground) to your gatsby dev server. This is running in parallel to GraphiQl.

What you will get is the Playground on the route `/___playground`, which you can use to query your data and test them out.

It will look like this

![Example Image](https://user-images.githubusercontent.com/1507057/51409977-9494c200-1b63-11e9-8150-5ee43cb6cf1a.png)

## Install

```
npm install --save gatsby-plugin-playground

// or using yarn

yarn add gatsby-plugin-playground
```

## How to use

Just add the plugin to the plugins array in your `gatsby-config.js`

```
plugins: [`gatsby-plugin-playground`]
```