This module is a playground for GraphQl queries and mutations. It is not intended for production use.
The module bundles the graphiql tool which is licensed under the MIT license. See graphiql/LICENSE for more information.
-
Install it into your Mage-OS/Magento 2 project with composer:
composer require mageos/graphql-playground
-
Enable module
bin/magento setup:upgrade
The GraphQL playground is automatically available in developer mode. In the production mode it is disabled by default. To enable it in production mode, run:
bin/magento config:set --lock-env dev/graphiql/enabled_in_production 1
In the developer mode the configuration can be set in the adminhtml configuration under Stores > Configuration > Advanced > Developer > GraphQL Playground
.
Open the GraphQL playground in your browser: https://<your-base-url>/graphiql
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
In the command line, change into the module directory and run:
composer install
./vendor/bin/phpunit
The MIT License (MIT). Please see License File for more information.