title: How to access attributes returned as a Mono object separately using Springboot
body: <p>I developed a REST service with the help of reactive programming in Spring Boot.I was able to retrieve the data as a mono object.But I need to capture only the necessary attribute from that Mono object returned </p>
  
  <pre><code>public Mono&lt;Boolean&gt; getUserAddress(User userRequest) {
      Mono&lt;User&gt; user =  userRepository.findByUsername(userRequest.getUsername());
  
     return user.filter(usr -&gt; true).hasElement();
  }
  </code></pre>
  
  <p>This code return true when there is data returned for a relevant username. But what I actually want is to retrieve only the "address" attribute from that returned Mono object and do some other processing.</p>
  
  <p>FYI - Mono object returning works fine in my code</p>