I'm trying to return the data I get from a query with firease using Ionic and Angular, but the array returns 'undefined'
QueryList (id: string ) {
this.db.collection('/list', ref => ref.where('id', '==', id)).valueChanges().subscribe(ref => {return ref});
}
What would be the correct syntax to return the array?