await db.query.widgets.findFirst({
where: eq(widgets.code, 'widget1'),
with: {
product: {
with: {
productFeedbacks: {
where: eq(schema.productFeedbacks.groupBrandCode, *WIDGETS.brandCode*),
}
}
},
}
});
await db.query.widgets.findFirst({
where: eq(widgets.code, 'widget1'),
with: {
product: {
with: {
productFeedbacks: {
where: eq(schema.productFeedbacks.groupBrandCode, *WIDGETS.brandCode*),
}
}
},
}
});