Retrieving a data array from firebase

Fredric Cliver
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.

--

--

Fredric Cliver
Fredric Cliver

Written by Fredric Cliver

13+ years in the digital trenches. I decode complex tech concepts into actionable insights, focusing on AI, Software Engineering, and emerging technologies.

No responses yet