# 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
72 lines
989 B
TypeScript
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
|
|
`;
|