user8202800
user8202800

Reputation:

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

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

Upvotes: 1

Views: 1271

Answers (1)

Doug Stevenson
Doug Stevenson

Reputation: 317467

Firestore doesn't have a way to make a single query across multiple collecitons. You will have to query each collection individually, then merge the results in your client code.

If it's important to be able to make a single query for everything you need, considering restructuring or duplicating your data to suit that query.

Upvotes: 4

Related Questions