get data from firestore based on document id code example
Example 1: get data in from a collection firestore
db.collection("users").get().then((querySnapshot) => {
querySnapshot.forEach((doc) => {
console.log(`${doc.id} => ${doc.data()}`);
});
Example 2: how to get firebase document id angular
.valueChanges({ idField: 'propertyId' });