This is my stream:
stream: chatRef
.where('id', isEqualTo: this.currentUserId)
.orderBy('timeStamp', descending: true)
.snapshots(),
I want to make a query where 'id is equal to this.currentUserId OR 'otherId' is equal to this.currentUserId but i cant find a simple way to do that...
Try this.
.where('id', whereIn: [this.currentUserId, otherId])
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.