I have below code
service file datalink
private dbUser = '/users';
constructor(private firestore: AngularFirestore) {
this.userCollection = firestore.collection(this.dbUser);
}
In my component file
this.datalink.userCollection .ref.where("name","==","xxx").orderBy("updatedOn")
it returns CollectionReference,
How to Convert CollectionReference in AngularFirestoreCollection or Observable?
I got below link
Convert CollectionReference in AngularFirestoreCollection<T> or Observable?
But not able to convert my scenario, lack of knowledge being new in the era.
I know I can do this like below which returns per my requirement.
this.firestore.collection('collectionanme',ref)
But I want my above query to return AngularFirestoreCollection or Observable?
Please help
Thanks