Hi everyone, I'm trying to use a `filter_by` condi...
# community-help
a
Hi everyone, I'm trying to use a
filter_by
condition in my Typesense search like this:
Copy code
filter_by: "quantity:<=minimumQuantity"
But I’m getting an error. It works fine if I use a static value (like
filter_by: "quantity:<=0"
). ā“ Is it possible to compare two fields within a document using
filter_by
, or does
filter_by
only support static values? Thanks a lot for your help!
f
Hey Arnaud, Typesense doesn't support dynamic values in filtering. You have to pass in an absolute value
āœ… 1
⚔ 1
a
Thanks for the quick response šŸ‘Œ
šŸ™Œ 1