Skip to content
Advertisement

Not able to retrieve data from firebase firestore

I am saving data to firebase successfully

JavaScript

But when i try to retrieve it firestore sends “No such document”. Trying to get the array of objects.

JavaScript

Here is the db

enter image description here

Edit: I found out that in order to access all documents you have to do it this way.

JavaScript

It goes into the then block but then querySnapshot.forEach doesnt run

Advertisement

Answer

Okay so i found the solution.

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement