RedisGraph icon indicating copy to clipboard operation
RedisGraph copied to clipboard

RedisGraph Result Set Structure

Open odanoburu opened this issue 3 years ago • 2 comments

Missing new value types like map and point.

Also broken link to the page from https://redis.io/docs/stack/graph/design/client_spec/, linking to https://redis.io/docs/stack/graph/design/client_spec/result_structure#graph-entities instead of https://redis.io/docs/stack/graph/design/result_structure/.

odanoburu avatar Apr 11 '22 13:04 odanoburu

@odanoburu - thank you for pointing out the bad link.

point is supported. Try for example

graph.query q "with point({latitude:12, longitude:50}) as p1, point({latitude:13, longitude:51}) as p2 return distance(p1,p2)"

You can return maps from queries. Try for example

graph.query q "return {a:5, b:'xx', c:5.5}"

LiorKogan avatar Apr 12 '22 14:04 LiorKogan

Yes yes, I mean that the description of the point and maps result structures seem to be missing in the docs at https://redis.io/docs/stack/graph/design/result_structure/.

Not difficult to reverse engineer, of course :)

odanoburu avatar Apr 12 '22 15:04 odanoburu