العبد
العبد

Reputation: 407

kotlin flow call list item details async

let us say I have //roomdb

@Query("SELECT * FROM Dog")
fun getAllDogs(): Flow<List<Dog>>

// getDogDetails

suspend fun getDogDetils(id:Int) :DogDetails

I want to hit endpoint to get dog details, however room,sqldelight return Flow<List> as Oneshot, I want to call getDogDetils for all dogs async and return the result as Flow<List<DogDetails>>

Upvotes: 0

Views: 223

Answers (1)

Saba Zafar
Saba Zafar

Reputation: 31

It would be easy if you share more details about entity of Dog or schema of your table

Upvotes: 0

Related Questions