2.5.9
- temporary disable
You can use at most one array-contains or array-contains-any clause per query. You can't combine array-contains with array-contains-any
this is because or
query allows multiple array-contains
or array-contains-any
clauses but and
query does not throw runtime error:
or(where('a', 'array-contains-any', ['2']),where('a', 'array-contains', '1'))
will throw runtime error error:
and(where('a', 'array-contains-any', ['2']),where('a', 'array-contains', '1'))
Solution exist but because of composite query nesting, it is going to be very complicated
I decided not to works on this for now, plus I am sick due to dengue