Erik the Red
Erik the Red
DTDrizzle Team
Created by Erik the Red on 5/14/2024 in #help
Fetching id from recently inserted data
Does Drizzle return the insertId if it is a UUID or a nanoid, and not a number, if not how do I get the inserted id. await ctx.db .update(homeTable) .set({ isAlive: true }) .where(eq(homeTable.id, homeTable[0].insertId)); returns a Typescript error because eq expects a string and not a number
1 replies