Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/saifadin/gatsby-plugin-playground
- Owner: Saifadin
- Created: 2019-01-17T22:48:55.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-30T07:34:29.000Z (almost 6 years ago)
- Last Synced: 2024-10-06T20:05:47.014Z (3 months ago)
- Topics: gatsby, gatsby-plugin, graphql, playground, prisma
- Language: JavaScript
- Size: 40 KB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`]
```