twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Feat: support relation filter

Open magrinj opened this issue 1 year ago • 7 comments

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

CleanShot 2024-09-12 at 11 40 20

magrinj avatar Nov 13 '23 08:11 magrinj