@brief Returns an array containing the complete result. `graph_query.toArray()` This function executes the generated query and returns the entire result as one array. ToArray does not return the generated query anymore and hence can only be the endpoint of a query. However keeping a reference to the query before executing allows to chain further statements to it. @EXAMPLES To collect the entire result of a query toArray can be used: @EXAMPLE_ARANGOSH_OUTPUT{generalGraphFluentAQLToArray} var examples = require("@arangodb/graph-examples/example-graph.js"); var graph = examples.loadGraph("social"); var query = graph._vertices(); query.toArray(); ~ examples.dropGraph("social"); @END_EXAMPLE_ARANGOSH_OUTPUT