Skip to content

Commit

Permalink
ref #24861 correct graphQL for multiselect and simple list
Browse files Browse the repository at this point in the history
  • Loading branch information
CiotkaCierpienia committed Nov 7, 2024
1 parent d77e63a commit 8040250
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,18 @@ const getType = (propertyConfig, required, property, ctdName, includeTypes) => {
case 'textMarkdown':
case 'email':
case 'radio':
case 'select':
default:
return 'String' + (required ? '!' : '');
case 'select':
return propertyConfig.multiple ? ['String' + (required ? '!' : '')] : 'String' + (required ? '!' : '');
case 'number':
return 'Float' + (required ? '!' : '');
case 'checkbox':
return 'Boolean' + (required ? '!' : '');
case 'geo':
return 'FlotiqGeo' + (required ? '!' : '');
case 'simpleList':
return ['String' + (required ? '!' : '')];
case 'datasource':
if (
includeTypes
Expand Down

0 comments on commit 8040250

Please sign in to comment.