How can I only store the collection data, I dont want just the reference this code gives

plugins
firebase

#1

This code below returns the ref in the firestore collection. How do i modify this to return the whole item in the collection in the array.

firestoreCollectionObservable(): void {
this.myCities$ = Observable.create(subscriber => {
const colRef: firestore.CollectionReference = firebase.firestore().collection(“cities”);
colRef.onSnapshot((snapshot: firestore.QuerySnapshot) => {
this.zone.run(() => {
this.cities = [];
snapshot.forEach(docSnap => this.cities.push(docSnap.data()));
subscriber.next(this.cities);
});
});
});
}