Hi folks,
I'm building a fitness app, where I have a collection of documents, each document is an exercise with name, description... and muscle groups. What I want to achieve, is to query every documents, list it by muscle groups only, but list each muscle group item only once.
For example, I want to create a new exercise, lets say Bench Press, what will be in the Chest muscle group. To be able to add the exercise, I click on a button, what takes me to a new window, and there will be all the muscle groups listed, I select Chest.
When I go to the new window, I query the database, and I want to list the items in a listview. However I have around 15 muscle groups and 270 exercises, the ideal outcome is to listeach muscle groups once, in order by name.
How do I do this? See attached picture. I kind of don't know how to set this up.
Thank you for your help in advance!