Flo
Flo
DTDrizzle Team
Created by Flo on 5/24/2023 in #help
select with limit of 1
Is there a cleaner way of selecting only one item with proper type safety than this?
const user: User | undefined = (await db.select().from(users).where(eq(users.id, userId)).limit(1))[0];
const user: User | undefined = (await db.select().from(users).where(eq(users.id, userId)).limit(1))[0];
12 replies
DTDrizzle Team
Created by Flo on 4/23/2023 in #help
[email protected] broke edge support
10 replies