关注用户部分如何像在Instagram中一样工作? [英] How does the follow user part work like in Instagram?

查看:62
本文介绍了关注用户部分如何像在Instagram中一样工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有两个Firestore集合,分别是用户"和帖子".现在,我正在尝试创建第三个集合"userFeed",可以在其中存储关注用户的所有帖子.我如何像在Instagram中那样关注用户,以便将所有关注的用户帖子存储在"userFeed"集合中?如何查询以其未来帖子出现在当前用户的"userFeed"中的方式关注用户?

I have two firestore collections in my app, "users" and "posts". Now I'm trying to create the third collection "userFeed" where all the posts of the followed users can be stored. How can i follow the users like in Instagram so that all the followed users' posts are stored in the 'userFeed' collection? How to query for following a user in a way that his future posts appear in the current user's 'userFeed'?

所有用户都必须使用firebase auth签名,以便所有用户都具有UID.如何进行关注用户查询?

All the users have to sign with firebase auth so all users have a UID. How do i make the follow user query?

推荐答案

我相信在

I believe the same concern was raised and addressed in this post. Although the response was in Javascript, the basic principle is the same.

这篇关于关注用户部分如何像在Instagram中一样工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆