how to get relation ordered ? for this relation: ...
# room
c
how to get relation ordered ? for this relation:
Copy code
data class ExamWithDates(
    @Embedded val exam: Exam,
    @Relation(
        parentColumn = "id",
        entityColumn = "id",
        associateBy = Junction(
            value = ExamDate::class,
            parentColumn = "examId",
            entityColumn = "dateId",
        )
    )
    val dates: List<Date>
)
I need dates ordered by date
d
For filtering and ordering it is best if you use a multimap return type
Copy code
@Query("...")
fun getExams(): Map<Exam, List<Date>>
c
ok. i will try it later.