H₂O
H₂O
Explore posts from servers
PPrisma
Created by H₂O on 1/8/2025 in #help-and-questions
"payload" argument must be of type object. Received null
hey guys im using nextjs and im facing the: "payload" argument must be of type object. Received null error what is the reason im getting this error i cant find anything
await prisma.patient.create({
data: {
firstName: "test",
lastName: "test",
phoneNumber: "0547194781",
patientId: "123426789",
firstVisit: new Date(),
gender: "test",
dateOfBirth: new Date(),
address: {
create: {
street: "test",
city: "test",
zipCode: "test",
},
},
},
});
await prisma.patient.create({
data: {
firstName: "test",
lastName: "test",
phoneNumber: "0547194781",
patientId: "123426789",
firstVisit: new Date(),
gender: "test",
dateOfBirth: new Date(),
address: {
create: {
street: "test",
city: "test",
zipCode: "test",
},
},
},
});
schemas:
model Patient {
id Int @id @default(autoincrement())
patientId String @unique @db.VarChar(10)
firstName String
lastName String
fullName String?
dateOfBirth DateTime
gender String
phoneNumber String
workPhoneNumber String?
homePhoneNumber String?
additionalPhoneNumber String?
firstVisit DateTime
email String? @unique
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
address Patient_Address?
}

model Patient_Address {
id Int @id @default(autoincrement())
street String?
city String
zipCode String?
patientId Int @unique
patient Patient @relation(fields: [patientId], references: [id])
}
model Patient {
id Int @id @default(autoincrement())
patientId String @unique @db.VarChar(10)
firstName String
lastName String
fullName String?
dateOfBirth DateTime
gender String
phoneNumber String
workPhoneNumber String?
homePhoneNumber String?
additionalPhoneNumber String?
firstVisit DateTime
email String? @unique
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
address Patient_Address?
}

model Patient_Address {
id Int @id @default(autoincrement())
street String?
city String
zipCode String?
patientId Int @unique
patient Patient @relation(fields: [patientId], references: [id])
}
12 replies
HHomarr
Created by H₂O on 3/10/2024 in #💬・get-help
No supported torrent, even tho qbit is integrated
No description
19 replies
PPrisma
Created by H₂O on 11/8/2023 in #help-and-questions
Weird bug in dates
No description
34 replies