twenty
twenty copied to clipboard
Feat: support relation filter
Scope & Context
Relation between customs and standards objects has been added recently #2398
Current behavior
We can't make a query filtering on nested relations
Expected behavior
We should be able to make query filtering on nested relations, by example query like that:
query Documents {
documents(filter: { suppliers: { name: { like: '%title%' } } }) {
edges {
node {
id
title
suppliers {
id
name
}
}
}
}
}
Technical inputs
• This ability should be added in the filter
factories.
• query-builder
should handle them properly based on how pg_graphql
is supposed to receive them.
Designs
https://github.com/user-attachments/assets/e8c37725-ffd7-4853-bd37-dddc19a01db8