ArangoDB Shell Output

    Show execution results

    1. 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.

    1.  

    Hide execution results

    There is also the function to explicitly print out values in theArangoDB shell:

    Show execution results

    1. {
    2. "a" : "123",
    3. "b" : [
    4. 1,
    5. 2,
    6. 3
    7. ],
    8. "c" : "test"
    9. }

    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

    1. [ArangoCollection 36779, "five" (type document, status loaded)]
    2. [
    3. {
    4. "_id" : "five/36790",
    5. "_rev" : "_ZHpY5sq--_",
    6. "value" : 2
    7. },
    8. {
    9. "_key" : "36787",
    10. "_id" : "five/36787",
    11. "_rev" : "_ZHpY5sm--B",
    12. "value" : 1
    13. },
    14. {
    15. "_key" : "36796",
    16. "_id" : "five/36796",
    17. "_rev" : "_ZHpY5sq--D",
    18. },
    19. {
    20. "_key" : "36783",
    21. "_id" : "five/36783",
    22. "_rev" : "_ZHpY5sm--_",
    23. "value" : 0
    24. },
    25. {
    26. "_key" : "36793",
    27. "_id" : "five/36793",
    28. "_rev" : "_ZHpY5sq--B",
    29. "value" : 3
    30. }
    31. ]

    Hide execution results

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