【问题标题】:OrientDB - How to use fetchPlan in BATCH OrientJS scriptOrientDB - 如何在 BATCH OrientJS 脚本中使用 fetchPlan
【发布时间】:2017-04-03 19:52:09
【问题描述】:

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

【问题讨论】:

    标签: orientdb orientjs


    【解决方案1】:

    试试这个:

    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。但是类型和投资组合没有被获取,只是 Rids
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-12
    • 1970-01-01
    • 2011-09-13
    • 1970-01-01
    • 2021-10-04
    相关资源
    最近更新 更多