konrad-kaminski / spring-kotlin-coroutine

Kotlin coroutine support for Spring.
448 stars 69 forks source link

Pageable and CoroutineMongoRepository #17

Open bdueck opened 6 years ago

bdueck commented 6 years ago

Hi;

I'm trying to use Pageable with the CoroutineMongoRepository.

... suspend fun findByName(name: String, pageable : Pageable): Page ...

This throws an error on startup from CoroutineMongoQueryMethod: Method has to use a either multi-item reactive wrapper return type or a wrapped Page/Slice type. Offending method: %s",

How exactly are you expecting it to be wrapped?

konrad-kaminski commented 6 years ago

This is actually an exception from the leftover code from ReactiveMongoQueryMethod. Nonetheless, even if this code is removed paging won't work. I'm in the process of adding paging support to CoroutineMongoRepository.