Home > Net >  Flutter: Firestore how to retrieve all the collections belong to a document?
Flutter: Firestore how to retrieve all the collections belong to a document?

Time:11-22

I have a collection tree like

- game (collection)
   - FPS (document)
      - CS:GO (collection)
      - Valorant (collection)
   - etc (document)

I am trying to retrieve all the collections from FPS but firebase is returning empty map {}.

Do I really have to make .get() operation to each collections, even if I just need collections that belong to FPS?

CodePudding user response:

Short answer: yes.

Currently, you can't query multiple collections at once.

  • Related