You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to filter based on array values? #826
I can't seem to figure out whether it's possible to filter on array values. Say you have a document with a numerical array field and you want to filter based on that to give you records that contain the supplied filter value in the array.
I dont think the comparison operators (=, !=, >, <, <=, >=) work in this case. If your numeric array for a given record contains [1,5,10,12] and you want to filter based on the value 5 then the comparison operators do not make sense. filters[my_array=5] doesnt work and returns an empty result set. Seems like you need the equivalent of an IN keyword.
Activity
ardevd commentedon Feb 22, 2021
Any update on this? I realize arrays are broken in multiple ways currently, but is there any way to filter based on array values yet?
eldadfux commentedon Feb 24, 2021
@ardevd we're working on fixing that, I'll share updates here and on Discord 👍🏻
TorstenDittmann commentedon Jun 25, 2021
Closing this in favor of #1174