import { posts } from './schema';
const results = await db.users.findMany({
with: {
info: true;
},
where: (users, { eq }) => {
return [eq(info.organizationId, '0')];
}
});
console.log(results);
// error: PostgresError: column users.organization_id does not exist
import { posts } from './schema';
const results = await db.users.findMany({
with: {
info: true;
},
where: (users, { eq }) => {
return [eq(info.organizationId, '0')];
}
});
console.log(results);
// error: PostgresError: column users.organization_id does not exist