Cloud Firestore deep get with subcollection

后端 未结 6 1170
离开以前
离开以前 2020-12-07 18:34

Let\'s say we have a root collection named \'todos\'.

Every document in this collection has:

  1. title: String
  2. subcollection named
6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-07 19:02

    you could try something like this

    db.collection('coll').doc('doc').collection('subcoll').doc('subdoc') 
    

    Hope this helps !

提交回复
热议问题