arangosh> db._parse( "FOR i IN [ 1, 2 ] RETURN i" );
{
"code" : 200,
"parsed" : true,
"collections" : [ ],
"bindVars" : [ ],
"ast" : [
{
"type" : "root",
"subNodes" : [
{
"type" : "for",
"subNodes" : [
{
"type" : "variable",
"name" : "i",
"id" : 0
},
{
"type" : "array",
"subNodes" : [
{
"type" : "value",
"value" : 1
},
{
"type" : "value",
"value" : 2
}
]
},
{
"type" : "no-op"
}
]
},
{
"type" : "return",
"subNodes" : [
{
"type" : "reference",
"name" : "i",
"id" : 0
}
]
}
]
}
]
}