Query data in multiple collections

前端 未结 3 1643
一向
一向 2021-01-28 22:09

I am developing a chat app using Firebase Firestore. I have a collection for room chat and another one for user info. How can I retrieve user data when I listen Room snapshot.

3条回答
  •  南笙
    南笙 (楼主)
    2021-01-28 22:16

    You have to execute two separate reads. but the problem you will get is read data executes in the background you have to wait until the second read data is received.

提交回复
热议问题