MapData scalar conflicts with GraphQL Core Schema module

Created on 28 May 2024, 8 months ago
Updated 18 June 2024, 7 months ago

Problem/Motivation

The module's graphql schema defines a duplicate scalar "MapData" resulting in the following error:

GraphQL\Error\Error: Type "MapData" was defined more than once. in GraphQL\Utils\BuildSchema->buildSchema() (line 126 of /app/vendor/webonyx/graphql-php/src/Utils/BuildSchema.php).

GraphQL\Utils\BuildSchema::buildAST() (Line: 72)
GraphQL\Utils\BuildSchema::build() (Line: 332)
Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema->buildSchemaOverride() (Line: 304)
Drupal\graphql_core_schema\Plugin\GraphQL\Schema\CoreComposableSchema->getSchema() (Line: 253)
Drupal\graphql\Entity\Server->configuration() (Line: 199)
Drupal\graphql\Entity\Server->executeOperation() (Line: 27)
Drupal\graphql\GraphQL\Utility\Introspection->introspect() (Line: 87)
Drupal\graphql\Controller\ExplorerController->viewExplorer()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Steps to reproduce

  1. Enable the module
  2. Configure a graphql server to expose webforms
  3. Visit the explorer

Proposed resolution

Remove the scalar. It is already defined by the graphql module.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇨🇭Switzerland Lukas von Blarer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024