Reputation: 81
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...
Upvotes: 0
Views: 21
Reputation: 5423
Try this.
.where('id', whereIn: [this.currentUserId, otherId])
Upvotes: 1