-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
I am using [email protected] and [email protected] 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.
jofflin and Pyakz
Metadata
Metadata
Assignees
Labels
No labels