Open EmptyDreams opened 5 months ago
I tried again and I found that the code works fine if I return Flow<T>
.
I see that there are some clarifications in the docs (https://docs.spring.io/spring-data/r2dbc/docs/3.1.1/reference/html/#repositories.query-async), but for kotlin, I've already modified the function with suspend, so shouldn't I be allowed to return a synchronised flow object like Iterable
?
I declare interfaces like the following:
When I call
findAllByPidIn(list)
, if only one piece of data ends up being matched, then R2DBC returns theMysqlPostsMeta
object directly instead of theIterable
object.When a function should return more than one result, an error is reported directly:
I tried replacing the return value with a
Stream
,Streamable
, etc., but it still does.I just upgraded to 3.2.4 and the problem persists.