I have below query
selectedUser$: AngularFirestoreDocument<any>;
this.selectedUser$ = this.userCollection.ref.where('uid', '==', key)
Throwing error
Type 'Query' is not assignable to type 'AngularFirestoreDocument'. Property 'ref' is missing in type 'Query'.
I tried
this.selectedUser$ = this.userCollection.ref.where('uid', '==', key).get()
no success
Basically, I want the query to return firestore document