Instead of take(1), you could use next().
This will transform the Flux into a valued Mono by taking the first emitted item, or an empty Mono if the Flux is empty itself.
Instead of take(1), you could use next().
This will transform the Flux into a valued Mono by taking the first emitted item, or an empty Mono if the Flux is empty itself.