I am using drizzle-plus@1.0.0-beta.34 and drizzle-orm@1.0.0-beta.1-4e7eaa6 and when I try to run a findManyAndCount query using relations filters I get this error TypeError: undefined is not an object (evaluating 'casing.getColumnCasing').
I am not really familiar with drizzle-orm source code but I saw that in your src/generated/internal.ts on line 51 you call the function relationsFilterToSQL like this:
relationsFilterToSQL(
ctx.table,
filter,
ctx.tableConfig.relations,
ctx.schema,
ctx.tableNamesMap,
ctx.dialect.casing
)
but relationsFilterToSQL type is
export declare function relationsFilterToSQL(table: SchemaEntry, filter: AnyRelationsFilter | AnyTableFilter, tableRelations: RelationsRecord, tablesRelations: TablesRelationalConfig, casing: CasingCache, depth?: number): SQL | undefined;
If I comment out ctx.tableNamesMap the query runs without issues but I don't know if I'm breaking something else without noticing it.
I am using
drizzle-plus@1.0.0-beta.34anddrizzle-orm@1.0.0-beta.1-4e7eaa6and when I try to run afindManyAndCountquery using relations filters I get this errorTypeError: undefined is not an object (evaluating 'casing.getColumnCasing').I am not really familiar with drizzle-orm source code but I saw that in your
src/generated/internal.tson line 51 you call the functionrelationsFilterToSQLlike this:but
relationsFilterToSQLtype isIf I comment out
ctx.tableNamesMapthe query runs without issues but I don't know if I'm breaking something else without noticing it.