I\'m trying to retrieve my documents with id but can\'t figure it out. Currently I retrieve my documents like this :
const racesCollection: AngularFir
I have tried this
return this.db.collection('items').snapshotChanges().pipe( map(actions => { return actions.map(a => { const data = a.payload.doc.data() as Item; data.id = a.payload.doc.id; data.$key = a.payload.doc.id; return data; }); }) );