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
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server