Closed Aparnai7 closed 11 months ago
@Aparnai7 thanks for raising the issue, i am able to reproducing the issue and working on fixes - it seems like issue is in array query inside where.
it's fixed in v - 4.7.1, please check and let me know. Happy coding.
Title
or condition and array in where does not works when using within joins
Description
select({ from: "Orders", join: [{ with: 'Customers', on: 'Customers.customerId=Orders.customerId', where: [{ customerId: 87, },{ or: { customerId: 85, }, }] }, { with: 'Employees', on: 'Employees.employeeId = Orders.employeeId', }, ], where: [{ shipperId: 3 }] });
whenever we try to use "or" condition OR use array in where condition inside joins, it does not work