You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the following to perform an OR looking something like ((x>1 AND y<10 AND x<10) OR ......)
I've tried:
{
worker: search.workers[i],
or: [
{ //whole day is within availability
start: orm.lte(search.startOfDay),
end: orm.gte(search.endOfDay)
},
{ //availability starts on this day but is longer than it
start: orm.gte(search.startOfDay),
start: orm.lte(search.endOfDay),
end: orm.gte(search.endOfDay)
},
{ //availability ends on this day but it starts before it
start: orm.lte(search.startOfDay),
end: orm.gte(search.startOfDay),
end: orm.lte(search.endOfDay)
},
{ //availability start and end are within this day
start: orm.gte(search.startOfDay),
end: orm.lte(search.endOfDay)
}
]
}
But obviously you can't set more than one property with the same name in javascript. If I put start: [], it'll try and do an IN rather than an AND.
Activity
dxg commentedon Apr 8, 2014
Does #365 help?