Open Valetek opened 3 months ago
Other options field work properly, but the where option is not working at all, thus it's returning the whole table
const a = await this.query({ columns: ["recipeCategoryId"], where: { recipeCategoryId: 1 }, });
this code while return this [{recipeCategoryId: 3},[recipeCategory: 1}] which is wrong
[{recipeCategoryId: 3},[recipeCategory: 1}]
my migration look like this
"022420241853_init_recipes": sql` CREATE TABLE recipes ( recipeCategoryId INTEGER NOT NULL );`,
Other options field work properly, but the where option is not working at all, thus it's returning the whole table
this code while return this
[{recipeCategoryId: 3},[recipeCategory: 1}]
which is wrongmy migration look like this