I have a repository call which will give me Mono .
ex:
private User getUserData (User user)
{
Mono<User> monoUser=userRepository.insert(user);
User user= monoUser.block;
return user;
}
How to achieve this without blocking in spring reactive. I don't want to do monoUser.block to get User object.
After getting userObject i need to convert id to UserId via Mapstruct.Also i want to achieve this without blocking so that i will be using reactive feature.