title: Convert Flux<Document> to Flux<Object> or List<Object>
body: <p>I have an object of</p>
  <pre><code>class Employee {
  
      private String salary;
      private String empId;
      private String departmentId;
      private String status;
  } 
  </code></pre>
  <p>and one method that returns Flux &lt;Document&gt;, Document is of type org.bson.Document, example</p>
  <pre><code>[
      {
          &quot;empId&quot;: &quot;B123&quot;,
          &quot;salary&quot;: &quot;1000&quot;,
          &quot;departmentId&quot;: &quot;winna&quot;,
          &quot;status&quot;: &quot;START&quot;
      },
      {
          &quot;empId&quot;: &quot;A123&quot;,
          &quot;salary&quot;: &quot;2000&quot;,
          &quot;departmentId&quot;: &quot;dinna&quot;,
          &quot;status&quot;: &quot;COMPLETED&quot;
      }
  ] 
  </code></pre>
  <p>How to convert Flux &lt;Document&gt; to Flux &lt;Employee&gt; or List &lt;Employee&gt; in JAVA?</p>