📅  最后修改于: 2022-03-11 14:58:07.708000             🧑  作者: Mango
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;
});
});