Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module exports your GraphQL schemas and introspection data to files. You can access this functionality through a web UI or Drush commands, making it useful for providing schema information to detached frontend applications.

GraphQL Export

GraphQL Export enables exporting your GraphQL schemas and introspection data to files.

An example usage: You have Drupal and a detached frontend in a monorepo. You can use this module to export the full schema to the frontend application on config export for usage by frontend tooling.

This module enables:

Web UI

This module will expose a simple interface at /admin/config/graphql/servers/manage/SERVER_MACHINE_ID_HERE/export where you can see and manually export the schema.

Exporting with Drush

To enable drush exporting, optionally add the following to your settings.php:

$settings['graphql_export'] = [
  'SERVER_MACHINE_ID_HERE' => [
    'graphqls' => '../path/to/save/schema.graphqls',
    'json' => '../path/to/save/schema.json',
  ],
];

Run drush config:export to export your files.

You can change the file paths to whatever you like, as long as the path is writable by Drupal when exporting your config.

GraphQL 3.x support

Use the 8.x-1x branch. This version is not actively maintained. It only has drush integration, and there is slight differences in the settings required. View branch README for more info.

Activity

Total releases
5
First release
Feb 2025
Latest release
9 months ago
Releases (12 mo)
3 ▲ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
2.0.6 Stable Oct 16, 2025
3.0.0-alpha1 Pre-release Oct 16, 2025
3.0.x-dev Dev Oct 16, 2025
2.0.5 Stable Apr 4, 2025
2.0.4 Stable Feb 12, 2025