Loopbackjs 从环回3迁移到环回4

Loopbackjs 从环回3迁移到环回4,loopbackjs,Loopbackjs,是否有任何自动方式将环回3中的项目迁移到环回4? 例如,我有JSON中的模型定义: {"name": "Item", "base": "PersistedModel", "forceId": true, "properties": { "id": { "type": "number", "id": true }, "created": { "type": "Date", "postgresql": {

是否有任何自动方式将环回3中的项目迁移到环回4? 例如,我有JSON中的模型定义:

{"name": "Item",
  "base": "PersistedModel",
  "forceId": true,
  "properties": {
    "id": {
      "type": "number",
      "id": true
    },
    "created": {
      "type": "Date",
      "postgresql": {
        "dbDefault": "now()"
      }
    },
    "name": {
      "type": "string",
      "required": true
    }
  }
}
有没有办法在LB4中自动创建相同的模型?

更新日期:2020年5月13日 LoopBack 4文档现在具有全面的功能。CLI工具也可用于帮助迁移某些组件

原始答案
LoopBack团队的您好到目前为止,还没有进行此类迁移的方法。LB4在模型创建方面与LB3非常不同,在LB3中,模型配置以JSON格式存储,而在LB4中,通过@model和@property decorators在typescript中定义。
也许将来会有办法。

希望lb4能达到更高的境界,取得更大的成功!