Nxia618
Nxia618
Explore posts from servers
DTDrizzle Team
Created by Chaimba on 2/6/2024 in #help
Help with a request
db.update(Users).set({ favorite: user.favorite.filter((anime: string) => anime !== name) }).where(eq(Users.email, email)) don't think there's a push, so this would be a get and then update, prob best as a transaction, db.transaction(async (tx) => { /** await tx.select...then await tx.update... */ })
4 replies
DTDrizzle Team
Created by Chaimba on 2/6/2024 in #help
Help with a request
db.select().from(Anime).where(inArray(Anime.name, user?.favorite))
4 replies
DTDrizzle Team
Created by Nxia618 on 11/7/2023 in #help
Nested where filter, how to not include empty
thanks, I'll take a look
9 replies
DTDrizzle Team
Created by Nxia618 on 11/7/2023 in #help
Nested where filter, how to not include empty
Not following what " use a subquery in the where " means?
9 replies
DTDrizzle Team
Created by Prøxïmïty on 9/21/2023 in #help
Cannot read properties of undefined (reading \'columns\')
I forgot to include the relevant table (I'm splitting my model into files) when doing const db = drizzle(pool, { schema }); resulted in the error "Cannot read properties of undefined (reading 'columns')"@d4mr perhaps similar issue?
4 replies