0

我想在 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

4

1 回答 1

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];

希望能帮助到你。

问候,

米凯拉

于 2017-05-11T09:09:28.087 回答