Prøxïmïty
Prøxïmïty
DTDrizzle Team
Created by Prøxïmïty on 6/20/2024 in #help
$inferSelect and $inferInsert doesn't return table types
changed to: parentId: varchar("parent_id", { length: 30 }).references( (): any => agencies.id, { onDelete: "cascade", } ),
6 replies
DTDrizzle Team
Created by Prøxïmïty on 6/20/2024 in #help
$inferSelect and $inferInsert doesn't return table types
the culprit: parentId: varchar("parent_id", { length: 30 }).references( () => agencies.id, { onDelete: "cascade", } ),
6 replies
DTDrizzle Team
Created by Prøxïmïty on 6/20/2024 in #help
$inferSelect and $inferInsert doesn't return table types
also, if there is a silent type error within the schema definition then it will not give the correct type
6 replies
DTDrizzle Team
Created by Prøxïmïty on 6/20/2024 in #help
$inferSelect and $inferInsert doesn't return table types
Make sure your typescript version is updated to latestt if possible
6 replies
DTDrizzle Team
Created by Prøxïmïty on 6/20/2024 in #help
$inferSelect and $inferInsert doesn't return table types
Fixed: Two things to check for
6 replies