Skip to content

Kotlin Flow as return type for repository methods causes an exception #2386

Closed
@sothawo

Description

@sothawo

When defining a repository method to be used in a Kotlin coroutine context like

fun searchByYear(year: Int): Flow<SeachHit<T>>

a call to this method fails as the found document is being mapped into the SearchHit instead of the entity type to be put into the SearchHit.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions