Firebase cloud store provides "get" method to retrieve the entire collection as following -
db.collection("users").get().then((querySnapshot) => {
querySnapshot.forEach((doc) => {
console.log(doc);
});
});
I am using Angularfire2 version 5.0.0rc3 in my ionic 3 project to connect with firebase cloud storage.
I am trying to access this get method as following -
constructor(
private afs: AngularFirestore
) {
this.afs.collection("users").get().then((querySnapshot) => {
querySnapshot.forEach((doc) => {
console.log(doc);
});
});
}
But here, "get" method is not working. Can anyone tell me who to use this 'get' method with firebase clould storage and angularfire2.
.ref.get()
– Klayman