title: How do I return a relation in RedisGraph?
body: <p>Using RedisGraph, I'd like for a QUERY to RETURN a relation's type.</p>
  
  <p>An example query:</p>
  
  <p><code>MATCH (n1:Entity { id: "foo" }) MATCH (n2:Entity2 { id: "bar" }) CREATE (n1)-[r:areFriends]-&gt;(n2) RETURN *</code></p>
  
  <p>Unfortunately, the returned value only includes <code>n1</code> and <code>n2</code>, but not <code>r</code>.</p>
  
  <p>The returned record contains the following:</p>
  
  <p><code>Record {
    _header: [ 'n1.id', 'n1.name', 'n2.id', 'n2.name' ]
  </code>
  This is compliant with my schema, yet <code>r</code> is notoriously missing there.</p>
  
  <p>How can I get RETURN to return the relation?</p>
  
  <p>OpenCypher supports syntax like:</p>
  
  <p><code>RETURN n1, n2, type(r)</code> but this doesn't seem to work in RedisGraph.</p>