这个问题在这里已有答案:
我需要获取好友列表 where
(friendshipStatus == friendshipStatusRequested && senderId == currentUserId)
似乎firebase不支持 AND, OR 或子查询 . 有什么方法可以解决这个问题吗?
不幸的是,Firebase不支持它 . 您可以做的是创建一个具有这两个值的混合的新属性 friendshipUser .
friendshipUser
friendshipUser = "friendshipStatusRequested_currentUserId"
1 回答
不幸的是,Firebase不支持它 . 您可以做的是创建一个具有这两个值的混合的新属性
friendshipUser
.friendshipUser = "friendshipStatusRequested_currentUserId"