I need to fetch the Friends list where
(friendshipStatus == friendshipStatusRequested && senderId == currentUserId)
Seems firebase does not provide support for AND, OR or subqueries. Is there any way to sort out the problem?
I need to fetch the Friends list where
(friendshipStatus == friendshipStatusRequested && senderId == currentUserId)
Seems firebase does not provide support for AND, OR or subqueries. Is there any way to sort out the problem?
Unfortunately Firebase doesn't support it. What you can do, is create a new attribute friendshipUser
with the mix of those two values.
friendshipUser = "friendshipStatusRequested_currentUserId"