1
0
Fork 0
arangodb/Documentation/Examples/08_workWithAQL_statementsPl...

11 lines
319 B
Plaintext

arangosh> var formatPlan = function (plan) { return { estimatedCost: plan.estimatedCost, nodes: plan.nodes.map(function(node) { return node.type; }) }; };
arangosh> formatPlan(stmt.explain().plan);
{
"estimatedCost" : 3,
"nodes" : [
"SingletonNode",
"EnumerateCollectionNode",
"ReturnNode"
]
}