1
0
Fork 0
arangodb/Documentation/Examples/api-explain-valid

58 lines
1.1 KiB
Plaintext

> curl --data @- -X POST --dump - http://localhost:8529/_api/explain
{ "query" : "FOR u IN users FILTER u.id == @id LIMIT 2 RETURN u.name", "bindVars": { "id" : 3 } }
HTTP/1.1 200 OK
content-type: application/json
{
"plan": [
{
"id" : 1,
"loopLevel" : 1,
"type" : "for",
"resultVariable" : "u",
"expression" : {
"type" : "collection",
"value" : "users",
"extra" : {
"accessType" : "all"
}
}
},
{
"id" : 2,
"loopLevel" : 1,
"type" : "filter",
"expression" : {
"type" : "expression",
"value" : "u.id == 3"
}
},
{
"id" : 3,
"loopLevel" : 1,
"type" : "limit",
"offset" : 0,
"count" : 2
},
{
"id" : 4,
"loopLevel" : 1,
"type" : "limit",
"offset" : 0,
"count" : 2
},
{
"id" : 5,
"loopLevel" : 1,
"type" : "return",
"expression" : {
"type" : "expression",
"value" : "u.name"
}
}
],
"error": false,
"code": 200
}