I was doing a project a while back where the user could choose a route/course and see its information on a separate page but got a problem regarding the extraction of the information of a specific entity stored in my Room database. I didn't end up finding the solution for the problem so I just changed my approach altogether and passed the necessary information through the intent that starts the activity instead of just getting the information by searching the database.
I've already tried to ask about the problem here How to get a specific Entity in Room but no one seems to see where the problem is so I'm changing the question.
What I want to know now is what is the best way to get a specific entity from Room database in Kotlin.