nahtnam
nahtnam
Explore posts from servers
DTDrizzle Team
Created by nahtnam on 11/21/2024 in #help
Circular Reference in Schema Relation
What issue are you having?
12 replies
DTDrizzle Team
Created by nahtnam on 11/21/2024 in #help
Circular Reference in Schema Relation
Yes it worked for me
12 replies
DTDrizzle Team
Created by nahtnam on 11/21/2024 in #help
Circular Reference in Schema Relation
Is this documented anywhere?
12 replies
DTDrizzle Team
Created by nahtnam on 11/21/2024 in #help
Circular Reference in Schema Relation
Thank you very much!!!
12 replies
DTDrizzle Team
Created by nahtnam on 11/21/2024 in #help
Circular Reference in Schema Relation
Prisma allows this like this
model Page {
id String @id @default(cuid())

metadata Metadata[] @relation(name: "PageMetadata")
primaryMetadataId String? @unique
primaryMetadata Metadata? @relation(name: "PrimaryPageMetadata", fields: [primaryMetadataId], references: [id], onDelete: Cascade)
}

model Metadata {
id String @id @default(cuid())

pageId String
page Page @relation(name: "PageMetadata", fields: [pageId], references: [id], onDelete: Cascade)
primaryPage Page? @relation(name: "PrimaryPageMetadata")
}
model Page {
id String @id @default(cuid())

metadata Metadata[] @relation(name: "PageMetadata")
primaryMetadataId String? @unique
primaryMetadata Metadata? @relation(name: "PrimaryPageMetadata", fields: [primaryMetadataId], references: [id], onDelete: Cascade)
}

model Metadata {
id String @id @default(cuid())

pageId String
page Page @relation(name: "PageMetadata", fields: [pageId], references: [id], onDelete: Cascade)
primaryPage Page? @relation(name: "PrimaryPageMetadata")
}
12 replies
DTDrizzle Team
Created by nahtnam on 10/17/2024 in #help
`pageId` does not exist when inserting, even though it's in the schema
Figured it out, one of the properties types mismatched (not pageId)
5 replies
DTDrizzle Team
Created by nahtnam on 10/17/2024 in #help
`pageId` does not exist when inserting, even though it's in the schema
Downgrading doesnt seem to fix it so I think im doing something wrong
5 replies
DTDrizzle Team
Created by nahtnam on 10/17/2024 in #help
`pageId` does not exist when inserting, even though it's in the schema
I just updated to the latest drizzle 0.35.1
5 replies
DTDrizzle Team
Created by nahtnam on 10/17/2024 in #help
`pageId` does not exist when inserting, even though it's in the schema
No description
5 replies
PD🧩 Plasmo Developers
Created by nahtnam on 1/10/2023 in #👟framework
React Devtools
I built the extension, then ran a http server. It was a new tab page so it loaded fine
14 replies