Report hasn't been filed before.
What version of drizzle-orm are you using?
0.45.1
What version of drizzle-kit are you using?
0.31.9
Other packages
No response
Describe the Bug
import { drizzle } from "drizzle-orm/sqlite-proxy"
drizzle((query, values, method) => {
if (method === 'get') {
return { rows: [] /* should use falsy value here to indicate no rows instead */ }
}
}, schema)
if returns [] as rows a db query like db.query.table.findFirst({ columns: {id: true} }) will return {id: undefined} even if the row does not exist
Report hasn't been filed before.
What version of
drizzle-ormare you using?0.45.1
What version of
drizzle-kitare you using?0.31.9
Other packages
No response
Describe the Bug
if returns
[]as rows a db query likedb.query.table.findFirst({ columns: {id: true} })will return{id: undefined}even if the row does not exist