OrientDB-如何在批处理OrientJS脚本中使用fetchPlan

OrientDB-如何在批处理OrientJS脚本中使用fetchPlan,orientdb,orientjs,Orientdb,Orientjs,我想在批处理脚本中获取链接实体,但它只返回RecordID 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尝试以下操作: begin;

我想在批处理脚本中获取链接实体,但它只返回RecordID

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

尝试以下操作:

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 bonizzi。但类型和投资组合不是提取的,只是RID