Files
twenty/packages/twenty-server/test/integration/constants/view-gql-fields.constants.ts
T
Paul RastoinandGitHub 7d747c9876 [REQUIRES_CACHE_FLUSH][GQL_VIEW_GROUP_API_BREAKING_CHANGE] ViewGroup in v2 (#15052)
# Introduction
Adding view-group to core engine v2
Following https://github.com/twentyhq/twenty/pull/15010 ( same pattern )

## What's done
- Created flat-view-group
- flat view group runner
- flat view group builder
- create view group service v2 and input transpilers
- refactor the existing view group resolver to fix standard (
BREAKING_CHANGE on graphql api update especially ) REST stays the same
- refactored the front to consume the mutations autogenerated

close https://github.com/twentyhq/core-team-issues/issues/1665
2025-10-14 15:55:50 +02:00

72 lines
989 B
TypeScript

export const VIEW_GQL_FIELDS = `
id
name
objectMetadataId
type
key
icon
position
isCompact
openRecordIn
workspaceId
anyFieldFilterValue
createdAt
updatedAt
deletedAt
`;
export const VIEW_FIELD_GQL_FIELDS = `
id
fieldMetadataId
position
isVisible
size
viewId
createdAt
updatedAt
deletedAt
`;
export const VIEW_SORT_GQL_FIELDS = `
id
fieldMetadataId
direction
viewId
createdAt
updatedAt
deletedAt
`;
export const VIEW_FILTER_GQL_FIELDS = `
id
fieldMetadataId
operand
value
viewId
createdAt
updatedAt
deletedAt
`;
export const VIEW_GROUP_GQL_FIELDS = `
id
fieldMetadataId
fieldValue
isVisible
position
viewId
createdAt
updatedAt
deletedAt
`;
export const VIEW_FILTER_GROUP_GQL_FIELDS = `
id
logicalOperator
parentViewFilterGroupId
viewId
createdAt
updatedAt
deletedAt
`;