BJ document has a null value of the capital field which should have not taken by whereNotEqualTo
val citiesRef = db.collection("cities").whereNotEqualTo("capital", true)
try {
val documents = citiesRef.get().await()
for (document in documents){
Log.d(TAG,"${document.data}")
}
}catch (e:Throwable){
Log.d(TAG,e.message.toString())
}
This code is not working despite the documentation saying that
Note that null field values do not match != clauses, because x != null evaluates to undefined.
but after I altered the null value with true or false doesn't matter which one is chosen, the code works well. can somebody explain to me what is the problem I encountered?




