Argument of type 'KyselyTypeError<"any(expr) call failed: expr must be an array">' is not assignable to parameter of type 'OperandValueExpressionOrList<DB, "areas", ExpressionWrapper<DB, "areas", string>>'.
If I temporarily remove Generated from the schema and set it to string[], then it works fine.
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
I have a table areas with a column days_of_week_active (for example ['Mon', 'Tue']).
In my schema the column is
days_of_week_active: Generated<string[]>;
, and it is generated because it has the default of all the days of the week:The following example doesn't compile
I get the following typescript error:
If I temporarily remove Generated from the schema and set it to
string[]
, then it works fine.Upvote & Fund