OrientDB - 如何在BATCH OrientJS脚本中使用fetchPlan

时间:2017-04-03 19:52:09

标签: orientdb orientjs

我想在BATCH脚本中获取链接的实体,但它只返回RecordIds。

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

1 个答案:

答案 0 :(得分: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