left join make the types never
Hi guys, im now sure if this is the expected behavior or not but i have this query
where the type of reminders is
so that is ok but when i add a left join all the types are never
this is the left join and now the types are
I'm not sure why is never i was expecting something like
Im doing something wrong or it is correct this way? Im using "drizzle-orm": "^0.29.2" Thanks so much in advance for the time
Im doing something wrong or it is correct this way? Im using "drizzle-orm": "^0.29.2" Thanks so much in advance for the time
5 Replies
This is not expected behavior. It's very likely there's an issue with your sentReminderTable
i'm definding the table in this way
i use this helper baseMysqlTable bc all my tables use this id, updatedAt, createdAt, etc
but yes that helperls is the problem i see, if i dont use that it works
but im not sure whhy bc im returnin a mysqlTable inside the function
do you know how can i do this in another way? bc all my tables need this columns so in order to not write it in every table i did this
a solution can be this
Yes, I was going to suggest this. Did it work?
Yes, that works perfect
Hi, I'm having this exact same problem, but the workaround that the OP used isn't great for me because my wrapper does more than just add some columns. Is this behavior a bug that the team could consider fixing?