Closed ujjwalguptaofficial closed 1 year ago
fixed and published in v - 4.4.8
From version - 4.5.7, join column can be used in root where. the where in join will work like and query
-
e.g -
select({
from: 'Customers',
join: {
with: 'Orders',
on: "Orders.customerId=Customers.customerId",
type: "left",
as: {
customerId: "orders_customerId"
}
},
where: {
orders_customerId: -1234
}
})
Discussed in https://github.com/ujjwalguptaofficial/JsStore/discussions/305