在Prisma中的现有枚举类型中添加新价值
Database error: Error querying the database: db error: ERROR: ALTER TYPE ... ADD cannot be executed from a function or multi-command string…
如何在Prisma中保存树结构数据
我尝试使用带有Prisma的Nestjs构建应用程序,我的树结构保存数据有问题,这是我的类别模型。 model Category { id Int @id @default(autoincrement())…
prisma orm更新所有记录用新字符串替换字符串
ID 内容 1 Item1 2 Item2 3 Item3 4 Item4 5 Item5 上面喜欢的表。如何使用Prisma orm替换内容相同的字符串“项目”为: ID 内容 1 1 1 2 2 3 3 4 4 …
PrismaclientInitializationerror:连接器中的错误:错误创建数据库连接VSCODE
Closed. This question needs details or clarity. It is not currently accepting answers. 想要改进此问题吗?添加详细信息并通过 闭合 7个月前。…
Docker -Compose -Prisma无法与数据库(Nestjs)连接
我正在尝试创建一个docker-compose来运行后端和前端,以及同时运行数据库(PostgreSQL),但是当我运行时,我会遇到此错误: /usr/src/app/node_modul…
从 @prisma/client导入枚举给出了“模块” @prisma/client&quot&quot&quot&quot&quot&quot&quot&quot&quot&quot'没有导出的成员模态'
我想在ORM模型中使用我在schema.prisma文件中定义的枚举(我正在使用TypeGraphQL)。 我的Prisma模式定义为 enum Modality { CT MAMMO MRI STEREO } …
检查独特价值的正常实践是什么?
Closed. This question is opinion-based. It is not currently accepting answers. 想要改进这个问题吗?更新该问题,以便可以通过。 闭合 2年前。…
prisma nested写道扔了未知的args
我拥有这样的缩短模式: model PATIENT { patient_id Int @id @default(autoincrement()) patient_name String patient_identity_card BigInt @unique…
Prisma缺少争论
我是我的 schema.prisma 文件,我有这2个模型: model User { id String @id @default(uuid()) @db.Uuid firstName String @map("first_name") @db.Va…
从GraphQL API填充数据库
主题名称所说,我正在搜索数据库,其中数据库来自已存在的数据库graphql api 。 我的项目使用 next.js , PostgreSQL , apollo graphql 和 prisma 连…
Prisma与关系和差额更新数据
我想与其他表有关的数据更新数据,但我并没有为此找到解决方案。我在nodejs-application中使用prisma。我在URL中给出ID(req.params.id))。 例如:h…
Prisma 2 -Unkown arg'其中'在select.fruit。您的意思是select&#x27 ;?可用的Args
试图查询Prisma并过滤来自相关对象的结果,但要获得错误: select.fruit.s in type type用户弗鲁特(select.fruit.)中的未知arg'where'''''''在哪里…
使用值数组来过滤JSON?
拥有一系列的制造商,我该如何排除阵列中的ID结果? 这可能在JSON领域吗? { Manufacturer: { path: ["manufacturerID"], not: { in: ["28", "266", "…
Prisma查询Upsert
我该如何在Prisma中进行此查询: INSERT INTO user_conference (user_id, conference_id, points, activities_completed) VALUES (1, '3a4QQI0KbO0eaD…