Installation

The module requires installation via composerin order to pull in the dependencies for the module to work ,most notably the webonyx/graphql-php library.

  1. Install the module running composer require drupal/graphql:4.x-dev.

  2. Enable the GraphQL module in extensions.

  3. Login and navigate to /admin/config/graphql to create a new server.

  4. 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