Closed Itangalo closed 2 years ago
After think about this for a while I can conclude that this is actually a biggie.
The current ObjectFilter contains = and != operators, and OR and AND. They are explicitly used in the four possible combinations – adding more operators would require rewriting how this works. Probably worth doing, but perhaps not for version 1.2.
The idea right now:
addEqualsCondition({a: 2})
or addLessThanCondition({a: 15})
or addBetweenCondition({a: [2, 15]})
. The conditions are stored in myFilter.andConditions or myFilter.orConditions, depending on the switch in the filter.Implemented. Documentation left to do.
Documentation done. Ready for release to 1.3.
The ObjectFilter class (#64) could be more useful if more operators were allowed, such as "<" and "=>".