从修改后的 Prisma 模式生成 KeyStone.js 6 个模式

Generate KeyStone.js 6 schema from modified Prisma schema

我有一个项目正在使用最新版本的 Prisma (3.9.1),并计划在其上放置一个 CMS。 Keystone 似乎非常适合,因为他们已经在内部使用 Prisma。不幸的是,我无法修改 Prisma 模式,因为它是从 Keystone 模式自动生成的。有没有办法逆转这个过程并从 Prisma 获得 Keystone 模式?

目前无法从现有的 Prisma 模式生成 Keystone 模式。您需要手动创建 Keystone 模式,这样 Keystone 才能生成新的 Prisma 模式文件。

目前也没有办法修改由 Keystone 生成的 Prisma 模式,尽管有人谈论开放它。