Adding Algolia search results to list in user collection.

Hey there, I've been searching high and low for the solution but continue to hit a wall. Here's my scenario:

I have a collection of categories in Firebase. Each category have several pre-filled fields attributed to it.

I have a search page within my app that uses Algolia to pull those categories from Firebase into an Algolia index which is then displayed in my app when I conduct a search.

Each user has field named 'favcategories' where the Data Type is 'Document Reference' and 'Categories' is the type of document. This field is also set up as a List.

In the ListView that displays the Algolia results I have an "Add" icon button in each row. When the 'Add' icon button is tapped, I would like the item in that row to be added to the user's list of categories.

I have no doubt the solution to this conundrum is simple, and I'm going to feel like an idiot once it's explained.

3 replies