Bath command and fetchPlan

19 views
Skip to first unread message

Пётр Павлов

unread,
Feb 9, 2015, 1:06:04 PM2/9/15
to orient-...@googlegroups.com
Hello!

How to use fetchPlan in the batch request via Rest api?

{ "transaction" : true,
 
"operations" : [
   
{
     
"type" : "script",
     
"language" : "sql",
     
"script" : [ "let entity = SELECT * FROM Entity WHERE @rid = #15:0 FETCHPLAN *:1",
                   
"let comp = traverse #15:0 from EntityToCompany",
                   
"return [$entity, $comp]" ]
   
}
 
]
}



In this query I get only rid links records.
In the documentation i not found how to pass fetchPlan for batch query.
Reply all
Reply to author
Forward
0 new messages