arangosh> var stmt = db._createStatement( ........> "FOR doc IN @@collection FILTER doc.foo == @bar RETURN doc"); arangosh> stmt.parse(); { "bindVars" : [ "bar", "@collection" ], "collections" : [ ], "ast" : [ { "subNodes" : [ { "subNodes" : [ { "id" : 0, "name" : "doc", "type" : "variable" }, { "name" : "@collection", "type" : "parameter" } ], "type" : "for" }, { "subNodes" : [ { "subNodes" : [ { "name" : "foo", "subNodes" : [ { "id" : 0, "name" : "doc", "type" : "reference" } ], "type" : "attribute access" }, { "name" : "bar", "type" : "parameter" } ], "type" : "compare ==" } ], "type" : "filter" }, { "subNodes" : [ { "id" : 0, "name" : "doc", "type" : "reference" } ], "type" : "return" } ], "type" : "root" } ] }