Cannot query field "mutations" on type "ParagraphsBlokkliEditState".

Created on 10 January 2025, 2 months ago

Problem/Motivation

When I enable the module I am getting errors related to undefined fields for the following query which is used by the Blokkli editor:

query pbEditState(
  $entityType: EntityType!
  $entityUuid: String!
  $langcode: String
) {
  state: getParagraphsEditState(
    entityType: $entityType
    entityUuid: $entityUuid
  ) {
    ...paragraphsBlokkliEditState
  }
}

This returns the following errors:

Cannot query field \"mutations\" on type \"ParagraphsBlokkliEditState\"."
Cannot query field \"currentIndex\" on type \"ParagraphsBlokkliEditState\"."

Proposed resolution

The Paragraphs Blokkli Edit extension should expose all the fields that are required by the Blokkli Editor.

Workaround

The error can be worked around by using the GraphQL Core Schema module and enabling the option "Enable value fields" and exposing the fields manually.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇧🇬Bulgaria pfrenssen Sofia

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

Comments & Activities

Production build 0.71.5 2024