Report hasn't been filed before.
What version of drizzle-orm are you using?
1.0.0-beta.15-859cf75
What version of drizzle-kit are you using?
1.0.0-beta.15-859cf75
Other packages
No response
Describe the Bug
When defining a relation incorrectly due to the "to" table not matching the expected table eg:
posts: r.many.post({
from: r.users.id,
to: r.blog.id,
}),
The error thrown looks like:
Uncaught Error: relations -> blogs: { posts: r.many.post(...) }: all "to" columns must belong to table "[object Object]", found column of table "blog"
Note [object Object] where post was expected.
Report hasn't been filed before.
What version of
drizzle-ormare you using?1.0.0-beta.15-859cf75
What version of
drizzle-kitare you using?1.0.0-beta.15-859cf75
Other packages
No response
Describe the Bug
When defining a relation incorrectly due to the "to" table not matching the expected table eg:
The error thrown looks like:
Note
[object Object]wherepostwas expected.