Hi I\'m starting with javascript and react-native and I\'m trying to figure out this problem for hours now. Can someone explain me how to get all the documents from firestor
Here's a simple version of the top answer, but going into an object with the document ids:
async getMarker() { const snapshot = await firebase.firestore().collection('events').get() return snapshot.docs.reduce(function (acc, doc, i) { acc[doc.id] = doc.data(); return acc; }, {}); }