But I got an error: Argument of type 'Table' is not assignable to parameter of type 'TableLikeHasEmptySelection<Table> extends true ? DrizzleTypeError<"Cannot reference a data-modifying statement subquery if it doesn't contain a
returning
returning
clause"> : Table'.
What is the intended way of writing my own wrappers? Does
TableLikeHasEmptySelection
TableLikeHasEmptySelection
check is the way to check this. Seems like TS is limited in this area. I can alos see the open bug here, but no solution.
Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too - Issues · drizzle-team/drizzle-orm