How to implement a Room LiveData filter
问题 I do not know how to implement a filter query properly inside the Repository and the ViewModel to use it to display the filtered string in a Textview or anything else really. My Entity, Dao, Repository, and ViewModel are as follows: User.kt @Entity(tableName = "user_data") data class User ( @PrimaryKey(autoGenerate = true) val id: Int, @ColumnInfo(name = "name") val name: String ) UserDao.kt @Dao interface UserDao { @Insert fun addUser(user: User) @Query("SELECT name FROM user_data WHERE name