Getting Started
graphql_core_schema
is a custom schema for Drupal's graphql module, which is its only dependency.
Installation
bash
composer require drupal/graphql drupal/graphql_core_schema
Enable
bash
drush en graphql_core_schema
Create Schema
- Go to the GraphQL configuration page at
/admin/config/graphql
. - Click on "Add new server".
- Select "Core Composable Schema" from the "Schema" dropdown.
- Save the configuration.
Configuration
- Click on "Edit" for the newly created server at
/admin/config/graphql
. - Choose at least one entity type under "Enabled entity types".
- Select the fields you want to enable under "Enabled fields".
- Enable any required extensions.
- Save the configuration.
- Rebuild the cache.
Usage
You can now navigate to the "Explorer" tab and start writing your first query!