Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
7 replies
r.omaarr

Filter Query with multiple parameters

What is the recommend approach when creating a query that needs to filter based on some conditions which may or may not exist (if the user doesn't specify them we should ignore the filter rule) while using prisma?

Something like /posts?category=a&tag=b
Should filter posts with a category and tag b
Was this page helpful?