Files
twenty/packages/twenty-server/test/integration/graphql/suites/query-complexity/constants/tooManyRelationQueryGqlFields.constant.ts
T
EtienneandGitHub d1befa7e35 Query complexity validation (#16274)
Validations : 
- relations count (in common api)
- oneToMany relation nested count (in common)
- requested fields count (in gql)
- root resolver count (in gql)
- root resolver duplicates (in gql)
- specific complexity for metadata / nesting count (in gql)
2025-12-04 16:33:08 +01:00

95 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
}
}
}
}
favorites {
edges {
node {
id
company {
id
}
person {
id
company {
id
}
}
}
}
}
noteTargets {
edges {
node {
id
company {
id
}
note {
id
}
person {
id
company {
id
}
}
company {
id
}
opportunity {
id
}
}
}
}
taskTargets {
edges {
node {
id
company {
id
}
person {
id
company {
id
}
}
company {
id
}
opportunity {
id
}
}
}
}
company {
id
people {
edges {
node {
id
company {
id
}
}
}
}
}
`;