I am trying to get a simple (in my mind) 2 step query from the firestore using AngularFire2 but I can't seem to understand yet what to do.
getProfile(): Observable<User>{
return this.afAuth.authState.map(user => {
return this.db.doc<User>('user/'+user.uid).valueChanges();
});
}
I keep getting the following: Type 'Observable>' is not assignable to type 'Observable'. Type 'Observable' is not assignable to type 'User'. Property 'name' is missing in type 'Observable'.
What, pray tell, am I missing here