You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type '{ id: string; email: string | null; userCustomId: string | null; role: string; }[]' is not assignable to type '{ id: string; email: string | null; userCustomId: string; role: string; }[]'.
Type '{ id: string; email: string | null; userCustomId: string | null; role: string; }' is not assignable to type '{ id: string; email: string | null; userCustomId: string; role: string; }'.
Types of property 'userCustomId' are incompatible.
Type 'string | null' is not assignable to type 'string'.
Type 'null' is not assignable to type 'string'.
I am facing issues where the userCustomId in the first select has a non nullable type but the union queries can have userCustomId null values. How do I make the userCustomId nullable here. Also userCustomId is an alias, not a column, is that the issue here?? I am new drizzle, so not sure how to type the alias in the first query so that he union queries types will match.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am facing issues where the userCustomId in the first select has a non nullable type but the union queries can have userCustomId null values. How do I make the userCustomId nullable here. Also userCustomId is an alias, not a column, is that the issue here?? I am new drizzle, so not sure how to type the alias in the first query so that he union queries types will match.
Beta Was this translation helpful? Give feedback.
All reactions