I am trying to retrieve collection data based on the UserId field.
retrieveData(){
const data$ = this.firestore.collection(this.trackerCollection,ref=> ref.where('UserId','==',"WrKDk0XSNjU20FI0EVRvADzvNHz1")).snapshotChanges().subscribe(res=>{
console.log(res);
});
}
When I fetch the data using this method, I receive the following response:
However, I actually need the response data to look like this: