Files
twenty/packages/twenty-server/test/integration/graphql/suites/query-complexity/constants/tooManyRelationQueryGqlFields.constant.ts
T
Charles BochetandGitHub b284c8323c Remove Favorite and FavoriteFolder from workspace schema (#19536)
## Summary

- Removes all workspace schema definitions for `Favorite` and
`FavoriteFolder` entities, which have been fully migrated to
`NavigationMenuItems`
- Deletes 26 standalone files including workspace entities, NestJS
modules, services, listeners, jobs, standard application builders (field
metadata, views, view fields, view field groups, indexes, page layouts),
mocks, and integration tests
- Cleans up ~40 modified files: removes `favorites` relation from 10
workspace entities and their field metadata utils, removes entries from
all builder maps, shared constants (`STANDARD_OBJECTS`,
`CoreObjectNameSingular`, `DEFAULT_RELATIONS_OBJECTS_STANDARD_IDS`), SDK
default relations, AI tool filtering, and standard object icons
2026-04-10 12:47:06 +02:00

92 lines
1.3 KiB
TypeScript

export const TOO_MANY_RELATION_QUERY_GQL_FIELDS = `
id
city
jobTitle
avatarUrl
intro
searchVector
pointOfContactForOpportunities {
edges {
node {
id
company {
id
}
}
}
}
noteTargets {
edges {
node {
id
targetCompany {
id
}
note {
id
}
targetPerson {
id
company {
id
}
}
targetCompany {
id
}
targetOpportunity {
id
}
}
}
}
taskTargets {
edges {
node {
id
targetCompany {
id
}
targetPerson {
id
company {
id
}
}
targetCompany {
id
}
targetOpportunity {
id
}
}
}
}
company {
id
people {
edges {
node {
id
company {
id
}
}
}
}
}
attachments {
edges {
node {
id
person {
id
company {
id
}
}
}
}
}
`;