shell> curl -X POST --header 'accept: application/json' --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF { "query" : "FOR i IN [ 1, 2, 3 ] FILTER 1 == 2 RETURN i" } EOF HTTP/1.1 OK content-type: application/json; charset=utf-8 x-content-type-options: nosniff { "plan" : { "nodes" : [ { "type" : "SingletonNode", "dependencies" : [ ], "id" : 1, "estimatedCost" : 1, "estimatedNrItems" : 1 }, { "type" : "CalculationNode", "dependencies" : [ 1 ], "id" : 2, "estimatedCost" : 2, "estimatedNrItems" : 1, "expression" : { "type" : "array", "typeID" : 41, "subNodes" : [ { "type" : "value", "typeID" : 40, "value" : 1, "vType" : "int", "vTypeID" : 2 }, { "type" : "value", "typeID" : 40, "value" : 2, "vType" : "int", "vTypeID" : 2 }, { "type" : "value", "typeID" : 40, "value" : 3, "vType" : "int", "vTypeID" : 2 } ] }, "outVariable" : { "id" : 2, "name" : "1" }, "canThrow" : false, "expressionType" : "json" }, { "type" : "EnumerateListNode", "dependencies" : [ 2 ], "id" : 3, "estimatedCost" : 5, "estimatedNrItems" : 3, "inVariable" : { "id" : 2, "name" : "1" }, "outVariable" : { "id" : 0, "name" : "i" } }, { "type" : "NoResultsNode", "dependencies" : [ 3 ], "id" : 4, "estimatedCost" : 0.5, "estimatedNrItems" : 0 }, { "type" : "ReturnNode", "dependencies" : [ 4 ], "id" : 5, "estimatedCost" : 0.5, "estimatedNrItems" : 0, "inVariable" : { "id" : 0, "name" : "i" }, "count" : true } ], "rules" : [ ], "collections" : [ ], "variables" : [ { "id" : 2, "name" : "1" }, { "id" : 0, "name" : "i" } ], "estimatedCost" : 0.5, "estimatedNrItems" : 0, "initialize" : true, "isModificationQuery" : false }, "cacheable" : true, "warnings" : [ ], "stats" : { "rulesExecuted" : 36, "rulesSkipped" : 0, "plansCreated" : 1 }, "error" : false, "code" : 200 }