New Drupal Module Simplifies Configuration Exposure via GraphQL

New Drupal Module Simplifies Configuration Exposure via GraphQL

Bernardo Paulino, a Drupal developer at iO, has released a new Drupal module called GraphQL Compose Configs, designed to make it easier to expose Drupal configuration through GraphQL. Built as an extension to the existing GraphQL Compose module, it introduces an admin interface that eliminates the need for hardcoded schema definitions or custom plugins.

The module was developed to address practical needs encountered in real projects. Teams needed a clean, maintainable way to expose configuration data without manual workarounds. With GraphQL Compose Configs, developers can select specific configurations and fields directly through the Drupal admin UI. The module then automatically generates type-safe GraphQL schema types based on those selections.

After installation, users can manage their configuration exposure from /admin/config/graphql/compose/configs, choose which fields to expose, and regenerate the GraphQL schema by clearing the Drupal cache. For instance, once the system.site configuration is exposed, developers can query properties like name, mail, and slogan using GraphQL.

The module requires Drupal 10.2 or later and the GraphQL Compose module. Although considered feature-complete and minimally maintained, it is already in use on more than 260 sites. 

Bernardo noted that sharing the module with the Drupal community was a strategic decision.

"Rather than keeping it internal, we thought: why not share this with the Drupal community?
If it can save other teams the same time and effort, while giving them a community-maintained solution — that’s a win-win for everyone."

For installation instructions and more information, visit the GraphQL Compose Configs project page.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Organizations

Related People

Upcoming Events

Latest Opportunities