penguin
ViewFieldAggregateOperationEnum not found
How is this registered in the codebase? when we have registered this
registerEnumType(AGGREGATE_OPERATIONS, {
name: 'AggregateOperations',
});
why do we have this as the enum ViewFieldAggregateOperationEnum
i am facing an error when i am adding an extra field
export enum AGGREGATE_OPERATIONS {
min = 'MIN',
max = 'MAX',
avg = 'AVG',
sum = 'SUM',
count = 'COUNT',
countUniqueValues = 'COUNT_UNIQUE_VALUES',
countEmpty = 'COUNT_EMPTY',
countTrue = 'COUNT_TRUE',
countFalse = 'COUNT_FALSE',
countNotEmpty = 'COUNT_NOT_EMPTY',
percentageEmpty = 'PERCENTAGE_EMPTY',
percentageNotEmpty = 'PERCENTAGE_NOT_EMPTY',
}
I AM SENDING THIS IN THE QUERY
mutation UpdateOneViewField($idToUpdate: ID!, $input: ViewFieldUpdateInput!) {
updateViewField(id: $idToUpdate, data: $input) {
typename
aggregateOperation
createdAt
deletedAt
fieldMetadataId
id
isVisible
position
size
updatedAt
view {
typename
createdAt
deletedAt
icon
id
isCompact
kanbanAggregateOperation
kanbanAggregateOperationFieldMetadataId
kanbanFieldMetadataId
key
name
objectMetadataId
openRecordIn
position
type
updatedAt
}
viewId
}
}
{
"idToUpdate": "2d5a5438-4ca3-453b-a21b-d5baf75f281c",
"input": {
"isVisible": true,
"position": 5,
"size": 180,
"aggregateOperation": "COUNT"
}
}
I AM GETTING AN ERROR
BaseGraphQLError [GraphQLError]: Value "COUNT_TRUE" does not exist in "ViewFieldAggregateOperationEnum" enum. Did you mean the enum value "COUNT" or "COUNT_EMPTY"?
at GraphQLEnumType.parseValue
2 replies