Jin
Jin
DTDrizzle Team
Created by zendev on 9/27/2023 in #help
get drizzle to correctly infer type with limit 1
It worked well for me
25 replies
DTDrizzle Team
Created by zendev on 9/27/2023 in #help
get drizzle to correctly infer type with limit 1
await db
.select()
.from(users)
.where(eq(users.userId, 1))
.limit(1).then(r => r.at(0))
await db
.select()
.from(users)
.where(eq(users.userId, 1))
.limit(1).then(r => r.at(0))
Doesn't this work?
25 replies