Files
twenty/packages/twenty-server/test/integration/constants/view-gql-fields.constants.ts
T
593b064448 Create resolvers and controllers for core views (#13624)
Created:
- Services
- Resolvers
- Controllers
- Tests for services
- Integration tests for GraphQL and Rest

Updated the Rest API playground

Added new feature flag `IS_CORE_VIEW_ENABLED`

Updated `viewFilter` `operand` and `view` `type` to be enums rather than
strings and generated migration file.

Closes https://github.com/twentyhq/core-team-issues/issues/1259

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2025-08-07 18:45:04 +02:00

71 lines
975 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
`;
export const VIEW_FILTER_GROUP_GQL_FIELDS = `
id
logicalOperator
parentViewFilterGroupId
viewId
createdAt
updatedAt
deletedAt
`;