I have a Firebase firestore collection and I can retrieve data from it using the construct
db.collection('myCollection').get().then(res => ...)
That works fine, it returns data.
But I use a @angular/material table and that component expects to retrieve an Observable from the datasource. Currently the table is not displaying anything and I suspect it is because Firestore returns a Promise instead of Observable.
How can I convert the Promise to an Observable?