How to convert Mono> into Flux Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of How to convert Mono> into Flux without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I’m converting small project written in RxJava 1.x to Reactor 3.x. All is good, except that I could not find out how to replace flatMap(Observable::from) with an appropriate counterpart. I have Mono<List<String>> and I need to convert it to Flux<String>.


In Reactor 3, the from operator has been specialized into a few variants, depending on the original source (array, iterable, etc…).

Use yourMono.flatMapMany(Flux::fromIterable) in your case.

We are here to answer your question about How to convert Mono> into Flux - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji