What structure is expected when using the http-proxy?
When I run this code i get a object with a empty id and name.
What is the expected return value?
What is the expected return value?
const db = drizzle(async (sql, params, method) => {
const result = await database.select(sql, params);
return {
rows: [
{
id: "1231",
name: "1231",
},
],
};
});
const results = await db
.select({
id: this.getDrizzleSchema().id,
name: this.getDrizzleSchema().name,
})
.from(this.getDrizzleSchema())
.execute(); rows = [['1', 'name']];