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
4 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