title: How to combine data from two reactive streams in project reactor?
body: <p>I started using Project Reactor recently and I can't work out how to work with nested streams. I want to update data of outer Mono with some data of inner Mono. </p>
  
  <pre><code> @GetMapping("/search")
      public Mono&lt;Github&gt; combineGithubData() {
          WebClient client = WebClient.create("https://api.github.com");
          Mono&lt;Github&gt; data = client.get().uri(URI.create("https://api.github.com/users/autocorrectoff")).retrieve().bodyToMono(Github.class);
          data = data.map(s -&gt; {
              client.get().uri(URI.create("https://api.github.com/users/Kukilej")).retrieve().bodyToMono(Github.class).map(m -&gt; {
                  s.setXXX(m.getName());
                  return m;
              });
  
              return s;
          });
          return data;
      }
  </code></pre>
  
  <p>The field XXX is always returned as null, although I have set it to a value from inner Mono. I'm pretty sure this would work in RxJs. How do I make this work with Project Reactor?</p>
  
  <p>edit:
  the code of the Github class</p>
  
  <pre><code>import lombok.*;
  
  @Getter @Setter
  @Builder
  @ToString
  @NoArgsConstructor
  @AllArgsConstructor
  public class Github {
      private String login;
      private int id;
      private String node_id;
      private String avatar_url;
      private String gravatar_id;
      private String url;
      private String html_url;
      private String followers_url;
      private String following_url;
      private String gists_url;
      private String starred_url;
      private String subscriptions_url;
      private String organizations_url;
      private String repos_url;
      private String events_url;
      private String received_events_url;
      private String type;
      private boolean site_admin;
      private String name;
      private String company;
      private String blog;
      private String location;
      private String email;
      private String hireable;
      private String bio;
      private int public_repos;
      private int public_gists;
      private int followers;
      private int following;
      private String created_at;
      private String updated_at;
      private String XXX;
  
  }
  </code></pre>