Hey everyone, I'm struggling to figure out why I can't retrieve data from Firestore. Even after carefully reading the documentation and double-checking the path, I still can't seem to make it work. I'm working with Ionic framework.
getChat(chatId){
const chatRoom = this.firestore.collection('/business/').doc(chatId);
const room = chatRoom.get();
console.log(room);
}
Observable {_isScalar: false, source: Observable, operator: ObserveOnOperator}
operator: ObserveOnOperator {scheduler: ɵZoneScheduler, delay: 0}
source: Observable {_isScalar: false, _subscribe: ƒ}
_isScalar: false
__proto__: Object