ArangoDB v2.8 reached End of Life (EOL) and is no longer supported.

This documentation is outdated. Please see the most recent version here: Try latest

ArangoDB Shell Output

By default, the ArangoDB shell uses a pretty printer when JSON documents are printed. This ensures documents are printed in a human-readable way:

arangosh> db._create("five")
arangosh> for (i = 0; i < 5; i++) db.five.save({value:i})
arangosh> db.five.toArray()
Show execution results
[ArangoCollection 2427406465, "five" (type document, status loaded)]
[ 
  { 
    "value" : 2, 
    "_id" : "five/2428127361", 
    "_rev" : "2428127361", 
    "_key" : "2428127361" 
  }, 
  { 
    "value" : 0, 
    "_id" : "five/2427734145", 
    "_rev" : "2427734145", 
    "_key" : "2427734145" 
  }, 
  { 
    "value" : 3, 
    "_id" : "five/2428323969", 
    "_rev" : "2428323969", 
    "_key" : "2428323969" 
  }, 
  { 
    "value" : 1, 
    "_id" : "five/2427930753", 
    "_rev" : "2427930753", 
    "_key" : "2427930753" 
  }, 
  { 
    "value" : 4, 
    "_id" : "five/2428520577", 
    "_rev" : "2428520577", 
    "_key" : "2428520577" 
  } 
]
Hide execution results

While the pretty-printer produces nice looking results, it will need a lot of screen space for each document. Sometimes, a more dense output might be better. In this case, the pretty printer can be turned off using the command stop_pretty_print().

To turn on pretty printing again, use the start_pretty_print() command.