0

我正在使用创建迁移脚本

orients migrate create something

up函数看起来像这样

 db.class.create('User', 'V')
    .then(function (User) {
        console.log("Created class User");
    })

}

'then' 函数没有被执行。但是这个类正在被创建。有什么遗漏吗?

我用的是orientjs版本:2.1.0 orientdb版本 2.1.6社区版

----更新----- 这是 github 问题:https ://github.com/orientechnologies/orientjs/issues/120

4

1 回答 1

0

您必须在 up 函数中返回一些内容才能看到 .then 输出。

于 2016-09-16T05:48:41.987 回答