2017-04-03 169 views
0

我想在BATCH腳本中獲取鏈接的實體,但它僅返回我的RecordIds。OrientDB - 如何在BATCH OrientJS腳本中使用fetchPlan

begin; 
let count = select count(*) from Company; 
let companies = select from Company ORDER BY name ASC LIMIT 25 FETCHPLAN type:1 portfolios:1; 
commit; 
return [$count, $companies]; 

使用OrientDB Server v2.2.17

回答

0

試試這個:

begin; 
let count = select count(*) from Company; 
let companies = select name from Company ORDER BY name ASC LIMIT 25 FETCHPLAN type:1 portfolios:1; 
commit; 
return [$count, $companies]; 

希望它能幫助。

問候,

MICHELA

+0

謝謝您的回覆@ MICHELA-bonizzi。但類型和投資組合不會被提取,而只是Rids –