I am facing a problem right now. I really don't understand where is my fault.
I try to query with library @angular/fire
Following is my query code:
return this.firestore.collection('Transaksi', ref => ref
.where('travel', '==', travel)
.where('waktu', 'in', [1, 5]) //this line is problem.
.where('tanggal', '==', tanggal)
.where('dariKota', '==', dari)
.where('menujuKota', '==', menuju))
.valueChanges()
But, I only get value where when waktu == 5
.
If I use
return this.firestore.collection('Transaksi', ref => ref
.where('travel', '==', travel)
.where('waktu', '==', 1)
.where('tanggal', '==', tanggal)
.where('dariKota', '==', dari)
.where('menujuKota', '==', menuju))
.valueChanges()
I get the correct value when I use waktu == 1
or waktu == 5
(normal).
But didn't get anything when I use waktu in [1, 5]
.
I try to use waktu in [5, 1]
but got the result.
Is something there I am missing?
or in angular, in
still not supportted?