Hi, I’m creating a project with arrow and Spring W...
# arrow
h
Hi, I’m creating a project with arrow and Spring Weblux with Spring Data R2DBC. Repository returns Mono<User>, and I wish service will return something like in Scala cats:
Copy code
def findUser(id: Userd): IO[Either[RepositoryError, Option[User]]]
How can I convert
Mono
to something like this? (repository error is my own type for errors) Or is there other way to make Spring Data return
IO
?