Orientdb orientjs中的批处理脚本不起作用

Orientdb orientjs中的批处理脚本不起作用,orientdb,orientjs,Orientdb,Orientjs,我试图按照中的建议使用orientjs执行批处理脚本,但出现以下错误: Unhandled rejection OrientDB.RequestError: Cannot find a command executor for the command request: sql.begin;let $susers = select from susers;return $susers Storage URL="plocal:/Users/amyth/projects/orient/orie

我试图按照中的建议使用orientjs执行批处理脚本,但出现以下错误:

Unhandled rejection OrientDB.RequestError: Cannot find a command executor for the command request: sql.begin;let $susers = select from susers;return $susers
    Storage URL="plocal:/Users/amyth/projects/orient/orientdb-community-2.2.0/databases/konnect"
    at Operation.parseError (/Users/amyth/projects/konnect/node_modules/orientjs/lib/transport/binary/protocol33/operation.js:865:13)
    at Operation.consume (/Users/amyth/projects/konnect/node_modules/orientjs/lib/transport/binary/protocol33/operation.js:455:35)
    at Connection.process (/Users/amyth/projects/konnect/node_modules/orientjs/lib/transport/binary/connection.js:399:17)
    at Connection.handleSocketData (/Users/amyth/projects/konnect/node_modules/orientjs/lib/transport/binary/connection.js:290:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at TCP.onread (net.js:542:20
对于以下简单的脚本:

begin;let $susers = select from susers;return $susers
我做错什么了吗?还是这是一个bug?

试试看

db.query("begin;let $susers = select from susers;return $susers",{class: 's'}).then(function(res){
 console.log(res)
})
似乎文档最近已被更改,忽略了
{class:'s'}

嗨,我尝试了你的案例,我也有同样的问题,你能提出一个问题吗?谢谢你,伙计。为我指明了正确的方向。答案被接受。