Type of relations when using with is not correctly set
I have two schemas:
They are in a one-to-one relation with the relations defined:
However when I run following query the setup property on a job is not properly typed:
Instead it has following type:
I tried following the other posts to solve this in the discord and also created the
IncludeRelations
type that was suggested in other similar posts, but nothing seems to be working for me.2 Replies
Hello, @rcamf! Is it possible to provide reproduction repo? I am using
drizzle-orm: ^0.29.3
and couldn't reproduce itSadly I cannot provide a reproduction repo, but I am using
drizzle-orm: beta
right now. Could it possibly be related to that.
Okay I think I have figured out the cause of the problem. Somehow my relations are not properly added to the schema. Since setting it up like you did works for me as well. Thanks a lot