property 27orderby 27 does not exist on type 27angularfirestorecollection 3cdocumentdata 3e

Solutions on MaxInterview for property 27orderby 27 does not exist on type 27angularfirestorecollection 3cdocumentdata 3e by the best coders in the world

showing results for - "property 27orderby 27 does not exist on type 27angularfirestorecollection 3cdocumentdata 3e"
Sixtine
04 Oct 2020
1this.announcementCollectionRef = afs.collection<Announcement>('announcements', ref => ref.orderBy('createdAt', 'desc'));
2this.announcements = this.announcementCollectionRef.snapshotChanges().map(actions => {
3    return actions.map(a => {
4        const data = a.payload.doc.data() as AnnouncementId;
5        const id = a.payload.doc.id;
6        return { id, ...data };
7    });
8});
9