How to refactor complex filters and fields for multiple roles? #6764
Unanswered
SadmanYasar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. I have been using this framework for a large project with Directus Data Provider Nextjs headless mode. Everything has been going well since last year but there are some issues I am facing with maintaining it for large list of fields and filters. Take this for example:
As you can see this is very complicated to read and maintain while validating this with the requirements. I thought of using GraphQL then adding the queries here based on role but this will require a full rewrite of the project. I am looking for some advice on how to approach this scenario. Refine.dev's architecture is fine when there are a small number of filters and fields but when it gets larger, I would like to have some typings for fields and filters as I have to fully rely on the API documentation currently with no intellisense on these.
Beta Was this translation helpful? Give feedback.
All reactions