firestore get doc bt id code example
Example: get doc id firestore
const racesCollection: AngularFirestoreCollection;
return racesCollection.snapshotChanges().map(actions => {
return actions.map(a => {
const data = a.payload.doc.data() as Race;
data.id = a.payload.doc.id;
return data;
});
});