Getting all documents from one collection in Firestore
const events = await firebase.firestore().collection('users')
events.get().then((querySnapshot) => {
const tempDoc = []
querySnapshot.forEach((doc) => {
var data = doc.data();
console.log(data);
tempDoc.push(data);
})
console.log(tempDoc);
})