Property 'isSelectQueryBuilder' is missing in type 'ExpressionWrapper<Database, "person", string>' but required in type 'SelectQueryBuilderExpression<Record<string, number>>'.
Property 'isSelectQueryBuilder' is missing in type 'ExpressionWrapper<Database, "person", string>' but required in type 'SelectQueryBuilderExpression<Record<string, number>>'.
It's really hard for me to get a playground repro from this (when I use string in my types), but the error is something along the lines of
eb.fn.coalesce(
eb.ref("person.quantity"),
eb.lit("0"),
)
eb.fn.coalesce(
eb.ref("person.quantity"),
eb.lit("0"),
)
which gives something like
Property 'isSelectQueryBuilder' is missing in type 'ExpressionWrapper<{ /* snipped */ }, /* snipped */>' but required in type 'SelectQueryBuilderExpression<Record<string, string | null>>'.
Property 'isSelectQueryBuilder' is missing in type 'ExpressionWrapper<{ /* snipped */ }, /* snipped */>' but required in type 'SelectQueryBuilderExpression<Record<string, string | null>>'.