We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f39129c commit 1109adbCopy full SHA for 1109adb
lib/redisgraph/query_result.rb
@@ -64,7 +64,16 @@ def parse_resultset(response)
64
header.reduce([]) do |agg, (type, _it)|
65
i += 1
66
el = row[i]
67
- agg << map_scalar(el[0], el[1])
+ case type
68
+ when 1 # Column of scalars
69
+ agg << map_scalar(el[0], el[1])
70
+ when 2 # node
71
+ props = el[2]
72
+ agg << props.sort_by { |prop| prop[0] }.map { |prop| map_prop(prop) }
73
+ when 3 # Column of relations
74
+ props = el[4]
75
76
+ end
77
end
78
79
0 commit comments