Hi, I wonder if it is possible to apply where filt...
# orm-help
m
Hi, I wonder if it is possible to apply where filters dynamically to a
findMany
query. Eg transforming a
GET
request like
/items?price[lt]=10&available[eq]=true
to a query. The rest endpoint can retrieve many filter criteria and the filter operation might differ. (Off course we will validate first which filter criteria were passed in)
r
Hey Marcel 👋 You could try by parsing the URL params using something like this and then call the API. Let me know if that works!