Retrieving a data array from firebase
1 min readSep 17, 2020
It defined on functions (backend) side. If you use time-consuming work within onCall function. You can return a Promise to the client.
snapshot.docs.map(doc => doc.data())
The above will make the array as a list of documents.