Skip to content

Tag: google-cloud-firestore

Firestore: get an array of objects

Is it possible to get an array of objects from Firestore. I tried something like below but I am getting undefined when I tried to log comments[0].comment Answer This returns a QuerySnapshot which contains the DocumentSnapshot of each document that has matched your query. The array of object is a field in your…