Drupal is a registered trademark of Dries Buytaert

graphql_compose_configs

10 sites No security coverage
View on drupal.org

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
8 months ago
Release cadence
22 days
Stability
0% stable

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