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
let comments = [{}]
try {
const ref = firebase
.firestore()
.collection('comments')
.where('ytid', '==', id)
const commentSnapshot = await ref.get()
let comments = commentSnapshot
console.log('comment snapshot')
console.log(comments[0].comment) //undefined
} catch (e) {
console.log(e)
}