title: OrientDB - expand() with additional fields
body: <p>Starting from the following query:</p>
  
  <pre><code>MATCH 
      {class: MYCLASS}--&gt;{as: a}--&gt;{as: b} 
  RETURN 
      $matches
  </code></pre>
  
  <p>which returns:</p>
  
  <pre><code>PROPERTIES
  =============
  a     | b
  -------------
  #25:0 | #10:0
  #25:0 | #9:0
  #29:0 | #11:0
  #29:0 | #33:0
  </code></pre>
  
  <p>I want all the fields from <code>b</code> and the class of <code>a</code> returned. Also I don't know what fields are in <code>b</code>.
  Basically this:</p>
  
  <pre><code>SELECT
      expand(b), a.@class
  FROM
      (MATCH 
          {class: MYCLASS}--&gt;{as: a}--&gt;{as: b} 
      RETURN 
          $matches)
  ;
  </code></pre>
  
  <p>which of course returns the error message: <code>Cannot execute a query with expand() together with other projections DB name="test"</code></p>
  
  <p>Any help would be appreciated.</p>