leeroy / sail-graphql-playground
GraphQL Playground for SailCMS
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Twig
Requires
- php: >=8.1
README
This package provides a graphical UI for GraphQL to test during development. It uses the graphql/graphql-playground library.
Installing
php sail install:official leeroy/sail-graphql-playground
This will install the package using composer and then update your composer file to autoload the package.
If you wish to install it manually, you and perform the following
composer require leeroy/sail-graphql-playground
After that, you can add Leeroy\\GraphQLPlayground
to the modules section of the sailcms property of your composer.json file. It should look something like this:
"sailcms": { "containers": ["Spec"], "modules": [ "Leeroy\\GraphQLPlayground" ], "search": {} }
Configuration
When installed, you need to add the following to your .env
file.
GRAPHQL_PLAYGROUND=true
Using
Open the /graphql
url from your project's url. You are ready to go!