Swift firestore get more than one collection's documents at same time?

时间:2018-03-09 19:11:56

标签: swift firebase google-cloud-firestore

How to get more than one collection's documents data?

my firebase tree is like : "tahminler/'useruid'/'date as like (5.3.2018 or 6.3.2018)'/'documentID'/'Document data'"

so how to take all dates collection's documents in a function and here is my firebase firestore console: enter image description here

1 个答案:

答案 0 :(得分:1)

Firestore没有办法在多个集合中进行单个查询。您必须单独查询每个集合,然后将结果合并到客户端代码中。

如果能够针对您需要的所有内容进行单一查询非常重要,请考虑重组或复制数据以适应该查询。