Use new type position for standard objects and newly created objects (#4349)

Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
Thomas Trompette
2024-03-06 18:34:10 +01:00
committed by GitHub
parent e5c09deae5
commit 019c630686
9 changed files with 13 additions and 8 deletions

View File

@ -22,6 +22,7 @@ export const mapFieldMetadataToGraphqlQuery = (
FieldMetadataType.EMAIL,
FieldMetadataType.NUMBER,
FieldMetadataType.BOOLEAN,
FieldMetadataType.POSITION,
].includes(fieldType);
if (fieldIsSimpleValue) {

View File

@ -36,6 +36,7 @@ const getSchemaComponentsProperties = (
case FieldMetadataType.NUMERIC:
case FieldMetadataType.PROBABILITY:
case FieldMetadataType.RATING:
case FieldMetadataType.POSITION:
itemProperty.type = 'number';
break;
case FieldMetadataType.BOOLEAN: