No id returned (mysql2)
returns
I need Id. Tried to add
.execute() a the end but same thing.async function create(data: NewBusiness) {
return client.insert(business).values(data)
} headers: [],
types: {},
fields: [],
rows: [],
rowsAffected: 1,
insertId: '0',
size: 0,
statement: ....execute().returning() after the insert?.$default() method, MySql will not return back the id because technically you provided it to the DB via your custom default.returning().$default()