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 allows you to expose your Drupal configuration data to GraphQL. You can select specific configuration items and their fields to make available, and the module automatically handles the conversion to GraphQL types for type-safe querying.

GraphQL Compose Configs module extends GraphQL Compose to expose Drupal configuration through GraphQL, providing type-safe access to configuration data.​

Features

Expose any Drupal configuration through GraphQL.

  • Selectively choose which configuration fields to expose.
  • Automatic type generation for exposed configurations.
  • Integration with GraphQL Compose's schema system.
  • Administrative interface for managing configuration exposure.
  • Type-safe access to configuration data.​

Post-Installation

After installing and enabling the module:

  • Navigate to /admin/config/graphql/compose/configs.
  • Click "Add configuration exposure".
  • Select the configuration you want to expose.
  • Choose which fields to expose.
  • Save the configuration.

Additional Requirements

This module requires the following:​

Usage

Exposing Configuration

Navigate to /admin/config/graphql/compose/configs.

  • Click "Add configuration exposure".
  • Select the configuration you want to expose.
  • Choose which fields to expose.
  • Save the configuration.

Querying Configuration

Once a configuration is exposed, you can query it using GraphQL. For example, to query the system.site configuration:

query {
  systemSite {
    name
    mail
    slogan
  }
}

The module automatically converts configuration names to valid GraphQL type names (e.g., system.site becomes systemSite).

Permissions

The module defines the following permission:​

  • Administer GraphQL configuration exposure: Allows users to manage which configurations are exposed through GraphQL.

Community Documentation

For more detailed information and best practices, refer to the GraphQL Compose documentation.

Activity

Total releases
3
First release
Apr 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
1.0.0-alpha2 Pre-release Jun 7, 2025
1.0.0-alpha1 Pre-release Apr 25, 2025
1.0.x-dev Dev Apr 25, 2025