prisma chobo
04/24/2022, 10:18 PMcan anyone please explain what the differences b/w
@@index([tags])
@@index([level])
vs
> @@index([tags, level])
??????
Oscar Mejia
04/25/2022, 12:58 AMDev__
04/25/2022, 9:27 AMTypeError: value.map is not a function
when I try to use updateMany
within an update
prisma.quotation.update({
where: ...,
data: {
...,
quotationLines: {
updateMany: {
data: items.map(...)
},
where: {
id: ...
}
}
}
})
Zurab Magomadov
04/25/2022, 10:32 AMy0on2q
04/25/2022, 1:29 PMuser
04/25/2022, 4:45 PMuser
04/25/2022, 5:10 PMMo El
04/25/2022, 7:40 PMJosep Alaziz
04/25/2022, 10:37 PMdauniusha
04/26/2022, 6:31 AMKasir Barati
04/26/2022, 6:50 AMnative
and second time linux-mucl
, and now after I add both it says to add linux-mucl
again.Kasir Barati
04/26/2022, 6:58 AMuser
04/26/2022, 8:13 AMuser
04/26/2022, 8:30 AMMykyta Machekhin
04/26/2022, 8:47 AMLuis Kuper
04/26/2022, 12:22 PMAlex Okros
04/26/2022, 6:10 PMNode-API
from the RHEL libquery engine on AWS EC2? Iβm trying to run prisma on an AWS Centos 7 environment thatβs been working for a while, but about two weeks ago, Iβve been getting this error whenever I try running it on my environment
Error: Unable to load Node-API Library from /snapshot/project/node_modules/.prisma/client/libquery_engine-rhel-openssl-1.0.x.so.node, Library may be corrupt
Iβve been able to confirm that it works on a non-AWS RHEL environment, so Iβd assume it has to do with some kind of recent update? The only problem is Iβm not quite sure what might have caused it.Rob Hoskins
04/26/2022, 7:53 PMnpx prisma migrate dev --name init
it tries to add fields to one of the tables and warns all data will be lost, I don't want that... What am I missing? many TIA!
In my schema I'm db-pulling to get the two tables into prisma.schema and then adding a third new one.
[+] Added tables
- job
- job_schedule
`[*] Changed the job_schedule
table`
[+] Added index on columns (job_id)
[+] Added foreign key on columns (job_id)
β We need to reset the PostgreSQL database "My-Project" at "XX.XXX.XXX.XX:5432".
Do you want to continue? All data will be lost. ... no
Dennis P
04/26/2022, 9:30 PMprisma.product.findFirst().comments()
Dennis P
04/26/2022, 9:31 PMDennis P
04/26/2022, 9:38 PMRicardo Seromenho
04/26/2022, 9:38 PMWilliam Chantry
04/26/2022, 10:41 PMSET NAMES 'UTF8';
query?Jonas Rothmann
04/26/2022, 11:13 PMradisa
04/27/2022, 5:18 AMmodel User {
walletAddress String @id
twitterHandle String?
website String?
bio String?
username String?
signedAt DateTime @default(now())
logs Log[]
@@map("users")
}
model Log {
id Int @id @default(autoincrement())
from User? @relation("fromAddressRelation", fields: [fromAddress], references: [walletAddress])
fromAddress String?
to User? @relation("toAddressRelation", fields: [toAddress], references: [walletAddress])
toAddress String?
createdAt DateTime @default(now())
@@map("logs")
}
The from
and to
property in the Log
model gives me an error says that "Error validating field from
in model `Log`: The relation field from
on Model Log
is missing an opposite relation field on the model User
. Either run prisma format
or add it manually". I want to User
model only has one Log
relation. How do I fix this? Thank youDominik JaΕ‘ek
04/27/2022, 6:23 AMnpx prisma studio
to interact with the database to make it work again. It seems like db is sleeping or is in idle state. Is there any way to set my local postgres db would be always reachable? Thanks πalexwasik
04/27/2022, 12:48 PMHakan AngΔ±n
04/27/2022, 3:44 PM