Enable GraphQL
GraphQL Api is disabled by default for security reasons, to enable it edit env.php
and set GRAPHQL
to true.
defined('GRAPHQL') || define('GRAPHQL', true);
Install library dependency
From Vvveb folder run
composer require webonyx/graphql-php
Authentication
Authentication is done with HTTP Authorization using any admin user credentials that has GraphQL permissions.
Permissions
Permission can be controlled from admin user roles and can be set for both resource and action.
Open API
An interactive in-browser GraphQL IDE is provided by the GraphQL plugin https://plugins.vvveb.com/product/graphql