一个问题,我怎么能做这个查询?
架构
-|conversations
-|$uid
-|fromID
-|message
name: string
date: date
body: string
like: boolea
如果用户是消息的发送者,则关注者都在收藏中conversations/$uid
,被关注的用户在conversations/ANYTHING/$uid
。
我可以通过这种方式列出关注者 this.followers = this.af.database.list(conversations/${this.currentAuth.uid});
但是,后面的用户呢?
解决方案是添加两个节点。关注者并关注每个配置文件以保存所有密钥。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句