I am new to Firestore and trying to fetch the documents based on a condition. Below is the Firestore structure I am currently working on.
I am trying to fetch only those documents from CollectionA
, in which one of the document of CollectionB
has DataFieldB1
= "Google".
This would avoid the going through the CollectionA
documents one by one.
Also when the number of documents are huge, this may not be an efficient way to fetch the documents.
Is this kind of multi-level queries are supported in firestore? Could you please guide me to find a solution for this problem.
Thank you