shell> curl -X POST --data-binary @- --dump - http://localhost:8529/_api/explain <<EOF { "query" : "FOR p IN products FILTER p.id == 25 RETURN p", "options" : { "allPlans" : true } } EOF HTTP/1.1 200 OK content-type: application/json; charset=utf-8 { "plans" : [ { "nodes" : [ { "type" : "SingletonNode", "dependencies" : [ ], "id" : 1, "estimatedCost" : 1, "estimatedNrItems" : 1 }, { "type" : "IndexNode", "dependencies" : [ 1 ], "id" : 6, "estimatedCost" : 1.99, "estimatedNrItems" : 1, "database" : "_system", "collection" : "products", "outVariable" : { "id" : 0, "name" : "p" }, "indexes" : [ { "id" : "10620", "type" : "hash", "fields" : [ "id" ], "selectivityEstimate" : 1, "unique" : false, "sparse" : false } ], "condition" : { "type" : "n-ary or", "subNodes" : [ { "type" : "n-ary and", "subNodes" : [ { "type" : "compare ==", "subNodes" : [ { "type" : "attribute access", "name" : "id", "subNodes" : [ { "type" : "reference", "name" : "p", "id" : 0 } ] }, { "type" : "value", "value" : 25 } ] } ] } ] }, "reverse" : false }, { "type" : "ReturnNode", "dependencies" : [ 6 ], "id" : 5, "estimatedCost" : 2.99, "estimatedNrItems" : 1, "inVariable" : { "id" : 0, "name" : "p" } } ], "rules" : [ "use-indexes", "remove-filter-covered-by-index" ], "collections" : [ { "name" : "products", "type" : "read" } ], "variables" : [ { "id" : 2, "name" : "1" }, { "id" : 0, "name" : "p" } ], "estimatedCost" : 2.99, "estimatedNrItems" : 1 } ], "warnings" : [ ], "stats" : { "rulesExecuted" : 26, "rulesSkipped" : 0, "plansCreated" : 1 }, "error" : false, "code" : 200 }