Marcus
Marcus
Explore posts from servers
DTDrizzle Team
Created by Marcus on 3/6/2024 in #help
Circular Dependency Hell
I have that for types on a self referencing type. My issue is a runtime error when two different models reference each other. Since there no closure on relations the value is undefined since it’s hoisted to the top on compilation
9 replies
DTDrizzle Team
Created by Marcus on 3/6/2024 in #help
Circular Dependency Hell
I guess it's just me, sad!
9 replies
DTDrizzle Team
Created by Marcus on 1/4/2024 in #help
Modeling Parent Relationships Results in TS Error
Looks like this works?
export const comment = mysqlTable('crawl_item', {
id: cuid2('id').primaryKey().notNull(),
parent: cuid2('parent').references((): AnyMySqlColumn => comment.id),
});
export const comment = mysqlTable('crawl_item', {
id: cuid2('id').primaryKey().notNull(),
parent: cuid2('parent').references((): AnyMySqlColumn => comment.id),
});
3 replies