dflourusso / expo-sqlite-orm

Expo SQLite ORM
132 stars 34 forks source link

Bug : this.query( where ) not working #71

Open Valetek opened 3 months ago

Valetek commented 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

my migration look like this

    "022420241853_init_recipes": sql`
          CREATE TABLE recipes (
            recipeCategoryId INTEGER NOT NULL
          );`,