Replies: 1 comment 2 replies
-
I don't understand the issue to be honest. You can put any |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Hello, i really try it googling this answer half day but i must ask, maybe its common...
I will make ecommerce website with diffrent filter parameter for each category
Prisma data model will look like this
Each category page, will have different name and number of filters
Question is how can i put dynamic number of the keys in fetch query?
Example react query fetch
How can i put parameters and key based on some filter state like
[filter, setFilters] = useState([resolution: "800x600", color: "blue" ])
Because sometimes will be 6 items in filter arrays with different name and value.
I will use Next.JS for API and i will like somehow use the data for prisma (postgres) filter
Thanks for a help :-)
Beta Was this translation helpful? Give feedback.
All reactions