While working with the new IN operator, I just noticed that it does not work with boolean true
value.
collection
.where( 'deleted', 'in', [ true, false ] )
This only seems to return documents that have the deleted
value as false
.
On the other hand, it works just fine when using "false"
and "true"
as strings
, but that's not really elegant ... isn't it?
Any clue? Is there something I'm missing from the docs?
Also, another thing that doesn't seem to work is this (from the docs):
.where( 'region', 'in', [[ 'east', 'west' ]] )
This crashes the Firebase SDK saying there's an invalid value inside the query. While this is not really important, I think it's just a mispelling on Google's part.
I've reported both issues to the Firebase team, hope you guys have some insight too.