LogicException: Missing type Integer

Created on 6 June 2023, over 1 year ago
Updated 7 June 2023, over 1 year ago

Problem/Motivation

When running some queries the following exception is thrown:

LogicException: Missing type Integer.

It seems we are using the Integer type in a few elements such as WebformElementValidationLimit. This should be Int instead, ref. GraphQL: Basic types.

Steps to reproduce

The following query throws the error:

fragment webformElementValidationMultiple on WebformElementValidationMultiple {
  limit
}

fragment webformElementManagedFile on WebformElementManagedFile {
  __typename
  id
  title
  description
  maxFilesize
  fileExtensions
  multiple {
    ...webformElementValidationMultiple
  }
}

fragment webformElement on WebformElement {
  ...webformElementManagedFile
}

fragment webform on Webform {
  title
  elements {
    ...webformElement
  }
}

query webform($webform_id: String!) {
  form: webformById(webform_id: $webform_id) {
    ...webform
  }
}

Proposed resolution

Use the correct type Int instead of Integer.

🐛 Bug report
Status

Fixed

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