Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Flux<Article> fillAuthor(@NonNull List<Article> articles) {
- return Flux.fromIterable(articles)
- .flatMap(article -> repository.getById(article.author.id)
- .map(author -> {
- article.author = author;
- return article;
- })
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment