Mr.Rubi
1
Is it possible somehow using the Data View component to effectively filter data using nested arrays?
In more detail.
Data comes from the server with the following structure:

It is necessary to leave all the data that has matches for fieldA field of objects included in the arrayA nested array.
Is there an effective way to do this?
Mr.Rubi
2
Found a solution:
Option A
arrayA.where('fieldA', input_search.value, 'contains')[0]?true:false
Option B
arrayA.where('fieldA', input_search.value, 'contains').count()>0
bpj
3
They work but I personally use the .hasItems() formatter to return true/false:
arrayA.where('fieldA', input_search.value, 'contains').hasItems()
2 Likes