Skip to content

2.5.9

Compare
Choose a tag to compare
@tylim88 tylim88 released this 24 Apr 04:33
· 185 commits to main since this release
  • 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