You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the type needs all of create, connect & createOnConnect methods ?!
Or am I doing something else wrong ?
With plain prisma the same query is working perfectly.
How to reproduce
use my schema, the generator & my client code
Expected behavior
Type should work with create method only
Prisma information
schema:
model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
email String @unique
name String?
password String?
projects Project[]
}
model Project {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
published Boolean @default(false)
title String
shortDesc String
desc String
author User @relation(fields: [authorId], references: [id])
authorId Int
tags Tag[]
}
model Tag {
id Int @id @default(autoincrement())
name String
projects Project[]
}
Bug description
Hi,
I have a problem getting implicit many-to-many relations to work with the generated code.
Attached you find my schema and client-code.
Problem is, VSCode and Angular Live Deployment Server both show the same TypeScript error, related to the generated type:
So the type needs all of create, connect & createOnConnect methods ?!
Or am I doing something else wrong ?
With plain prisma the same query is working perfectly.
How to reproduce
use my schema, the generator & my client code
Expected behavior
Type should work with create method only
Prisma information
schema:
client-code:
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: