Firestore listener for sub collections

前端 未结 4 935
闹比i
闹比i 2021-01-13 09:05

I have my Firestore setup in the following way:

Channels [collection] ----> channelID ---> Messages [collection] ---> messageID

How would I add snapshotList

4条回答
  •  广开言路
    2021-01-13 09:49

    You can't have a single listener receive updates from an unknown number of subcollection. There are no "wildcard" operators for listeners on collections. You have to choose a specific collection or query and attach a listener to that.

提交回复
热议问题