I'm not sure how to use the OR condition in typeOrm where clause, could not find solution so far.
I have a db call as follows
db.getRepository(MyModel).find({
where:{
type : "new",
status: "A"
region: "central"
zip_code: "4831"
}
})
I need to modify the above call same as to below SQL query
select * from model where type="new" and status="A" and (region="central" or zip_code="4831");