Error: There is not enough information to infer relation - one to many
Getting this error when attempting to query or load up studio.
Here is my schema
Here is my query
Not sure what I'm doing wrong. Thank you!
2 Replies
I felt like I was following https://orm.drizzle.team/docs/rqb#one-to-many to a T, but I'm sure something is off here
Drizzle ORM - next gen TypeScript ORM
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Doesn't seem to be an obvious syntax errors, no TS errors in the query or the schema
I have also tried without snake_case and getting the same erorr just in case
AH found it. checks: many(habits) -> checks: many(checks)