Here is my CodePen to demonstrate my case:https://codepen.io/ThanhVan/pen/mdbVxqK
If I set up the filter
- With 'contains' : ["Category", "contains", 4] then It will return 2 records for SupperPlasma 50 and SuperLED50:
. With 'equals' : ["Category", "=", 4] then It will return only one record for SuperLED50 .
How can I make it return the same value for the array field??
The "Contains" operation is specific to string values. So, it cannot work with numeric values in the same manner. In addition, I see that you are using complex values (arrays) for the "Category" field. These values cannot be compared with scalar values. So, I recommend that you use only scalar values (numbers or strings) for filtering.