can't get data after inserting I need the id.

can't get data after inserting I need the id. using planetscale serverless import { drizzle } from "drizzle-orm/planetscale-serverless"; import { connect } from "@planetscale/database";
No description
2 Replies
Angelelz
Angelelz11mo ago
mysql doesn't support returning If the id is autoincrement, mysql can give it back to you. I think the field is insertId
Alvee
AlveeOP11mo ago
thanks
Want results from more Discord servers?
Add your server