I have user document which contains a field playlistIds. I also have a collection of playlists.
I am trying to return a list of playlist documents from the list of playlistIds.
I can't seem to find how to do this anywhere :/
More specific to my case using flutter. My app is contained in a stream builder which receives snapshots of the user document. Upon receiving the user snapshot I want to asynchronously fetch all the playlist documents from the playlistIds field so that I can lazily load them into my User class.
Any help is greatly appreciated Thank you :)
Closest answer I have found is this Flutter Firebase get documents by array of IDs. However it supposedly caps to 10 documents. I expect the number of playlists to exceed that in some cases.
I have tried iterating over each document and using Future.wait() to wait until all snapshots are retrieved but the document contents are null.
