Doent infer type in Callback syntax for query
Im querying the users table like this
in the where callback param user is typed as never ??
ive setup drizzle like this
any idea why this is the case??
db.query.user.findFirst({
where: (user, { eq }) => {
return eq(user.email, whereArgs?.email);
},
})in the where callback param user is typed as never ??
ive setup drizzle like this
import * as schema from '@/db/schema';
const db = drizzle(pool, { schema });any idea why this is the case??