1
0
Fork 0
arangodb/js/apps/system/_admin/aardvark
Jan Steemann 748107b291 changed behavior of `db._query()` in the ArangoShell:
if the command's result is printed in the shell, the first 10 results will be printed. Previously
only a basic description of the underlying query result cursor was printed. Additionally, if the
cursor result contains more than 10 results, the cursor is assigned to a global variable `more`,
which can be used to iterate over the cursor result.

Example:

    arangosh [_system]> db._query("FOR i IN 1..15 RETURN i")
    [object ArangoQueryCursor, count: 15, hasMore: true]

    [
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10
    ]

    type 'more' to show more documents

    arangosh [_system]> more
    [object ArangoQueryCursor, count: 15, hasMore: false]

    [
      11,
      12,
      13,
      14,
      15
    ]
2015-04-04 19:42:55 +02:00
..
APP changed behavior of `db._query()` in the ArangoShell: 2015-04-04 19:42:55 +02:00