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);
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.
GraphQL IDE
An interactive in-browser GraphQL IDE is provided by the GraphQL plugin https://plugins.vvveb.com/product/graphql
Vercel Next.js Commerce
Vercel Next.js Commerce headless store implemented using Vvveb GraphQL API https://github.com/givanz/vercel-vvveb-commerce