title: How to collect a variable length relationship's properties
body: <p>I can obtain the properties from all the relationships that satisfy a simple pattern (length of 1) such as:</p>
  
  <pre><code>MATCH ()-[r:RELATIONSHIP]-&gt;() RETURN collect(r.id)
  </code></pre>
  
  <p>But cannot obtain the properties of variable length relationships such as:</p>
  
  <pre><code>MATCH ()-[r:RELATIONSHIP*]-&gt;() RETURN collect(r.id)
  </code></pre>
  
  <p>Any help will be appreciated.</p>
  
  <blockquote>
    <p>Error message is: Neo.ClientError.Statement.SyntaxError: Type
    mismatch: expected Any, Map, Node, Relationship, Point, Duration,
    Date, Time, LocalTime, LocalDateTime or DateTime but was
    List</p>
  </blockquote>