here is my code:
const posts = firestore.collection("posts");
function myFunc() {
posts.get().then((result) => {
result.docs.forEach((post) => {
console.log(post.poster);
})
})
}
When I run this function it logs undefined for each document when inside the actual documents the poster property is set to a string variable.