Problems Connecting to Firestore Cloud Database

Hey there, glad you got it working :smiley:!

To get the data from multiple properties you’ll want to add them to the filter function, something like:

this.goalList = this.goalList.filter(currentGoal => {
  if ( (currentGoal.goalName.toLowerCase().indexOf(searchTerm.toLowerCase()) ||
       (currentGoal.otherProperty.toLowerCase().indexOf(searchTerm.toLowerCase())) > -1) {
  return true;
  } else {
    return false;
  }
});

Also, I don’t know what the end goal is, if you’re looking for something more robust, we’ve been using ionic selectable at my company for 2 BIG enterprise apps and both the development team and management team are ultra happy with it hahaha :stuck_out_tongue:

Ideally i would like the user to make a selection based on name displayed from the search and then be able to pull more fields from the database such as location, date etc when this name is selected.

This all depends on how your data is structured in the DB, if you are pulling the list and the documents have all the properties you’ll get them all immediately. You can’t tell Firebase “Just send me X, Y, or Z properties of this document.” (Or at least I’m not aware of it).

Do let me know if this helps, or if you need anything else :smiley:.