ArangoDB Shell Output
Show execution results
- 966
Hide execution results
In order to prevent printing the result of the last evaluated expression,the expression result can be captured in a variable, e.g.
Hide execution results
There is also the function to explicitly print out values in theArangoDB shell:
Show execution results
- {
- "a" : "123",
- "b" : [
- 1,
- 2,
- 3
- ],
- "c" : "test"
- }
By default, the ArangoDB shell uses a pretty printer when JSON documents areprinted. This ensures documents are printed in a human-readable way:
Show execution results
- [ArangoCollection 36779, "five" (type document, status loaded)]
- [
- {
- "_id" : "five/36790",
- "_rev" : "_ZHpY5sq--_",
- "value" : 2
- },
- {
- "_key" : "36787",
- "_id" : "five/36787",
- "_rev" : "_ZHpY5sm--B",
- "value" : 1
- },
- {
- "_key" : "36796",
- "_id" : "five/36796",
- "_rev" : "_ZHpY5sq--D",
- },
- {
- "_key" : "36783",
- "_id" : "five/36783",
- "_rev" : "_ZHpY5sm--_",
- "value" : 0
- },
- {
- "_key" : "36793",
- "_id" : "five/36793",
- "_rev" : "_ZHpY5sq--B",
- "value" : 3
- }
- ]
Hide execution results
To turn on pretty printing again, use the start_pretty_print() command.