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
For angular6+
this.shirtCollection = afs.collection('shirts'); this.shirts = this.shirtCollection.snapshotChanges().pipe( map(actions => { return actions.map(a => { const data = a.payload.doc.data() as Shirt; const id = a.payload.doc.id; return { id, ...data }; }); }) );