Craig McKay

Results 3 comments of Craig McKay

With the RootGraph being essentially RootNode at the end, calculate from there backwards to find the end-result of the RootNode. If I'm understanding the Decision Graph properly, it would essentially...

I've run into that TS error a few times with circular references, and it was resolved (in my PostgreSQL case) by adjusting this line: `.references(() => accreditations.id),` -> `.references((): AnyPgColumn...

I've previously had Polymorphic relationships operate like this: ![image](https://github.com/drizzle-team/drizzle-orm/assets/72955871/83ca3ad0-17e1-479f-9968-204b3b6e3908) Where there's a FK column and a Type column to determine which foreign table it's referencing. This allows for two columns...