My flutter app is using Firestore as a database. I am listening on a stream for data using this:
Firestore.instance.collection('cars')
.where("free", isEqualTo: true).snapshots()
The problem with this is that when I change the field free of a car with free: false
the stream is not updating, probably because of the where("free", isEqualTo: true)
but if I change the field to free: true
the stream sends updates...
You probably need to create an index in Firestore.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.