agensgraph
agensgraph copied to clipboard
alternative to `range`
It appears range available in Neo4j Cypher isn't available in agensgraph. Is there a workaround in ag? Thanks!
Range is now available in AgensGraph
postgres=# select version();
version
--------------------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 15.12 (AgensGraph 2.15) on aarch64-apple-darwin20.6.0, compiled by Apple clang version 13.0.0 (clang-1300.0.29.3), 64-bit
(1 row)
postgres=# RETURN range(0, 10), range(2, 18, 3), range(0, 5, -1);
range | range | range
------------------------------------+-----------------------+-------
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | [2, 5, 8, 11, 14, 17] | []