Installation
The module requires installation via composer
in order to pull in the dependencies for the module to work ,most notably the webonyx/graphql-php library.
Install the module running
composer require drupal/graphql:4.x-dev
.Enable the GraphQL module in extensions.
Login and navigate to
/admin/config/graphql
to create a new server.At this point you can either start with the test schema provided by the module (see the Introduction section) or start right away making your own custom schema as we will describe in the next section.
Dependencies
By installing the module with composer you will install also the necessary libraries webonyx/graphql-php library and the Typed Data module.
Permissions
At this point you can check the permissions added by the module in the permissions page at /admin/people/permissions
. You can control who can perform arbitrary and persisted queries against graphql and also who can access the Voyager or the GraphiQL pages.
Last updated