Sorry, seems the docs are a bit out of date. It was sent out on the mailing list a while that this actually changed, all operators are now AND, it is not possible to do any kind of OR operation (but you can use :in:)
Thank You Morten,
Could you clarify just this one more thing please :-
What does it mean for the operator gt,lt,ge,le to be applied on a field which is of type string?
For eg what would be compared if I write api/programs?filter=validationCriteria.value:gt:4 ? And the type of validationCriteria.value is string…
Can I achieve this somehow from the API?..comparing a string as though it was an integer through the gt,lt…operators?
regards
harsh
···
On 4 September 2015 at 13:32, Morten Olav Hansen mortenoh@gmail.com wrote:
Hi,
Sorry, seems the docs are a bit out of date. It was sent out on the mailing list a while that this actually changed, all operators are now AND, it is not possible to do any kind of OR operation (but you can use :in:)
String also has a numeric value, i.e. “1” is smaller than “2”, so for those simple cases you can use it. But don’t be fooled, this is -string- comparing, not comparing integers.
Thank You Morten,
Could you clarify just this one more thing please :-
What does it mean for the operator gt,lt,ge,le to be applied on a field which is of type string?
For eg what would be compared if I write api/programs?filter=validationCriteria.value:gt:4 ? And the type of validationCriteria.value is string…
Can I achieve this somehow from the API?..comparing a string as though it was an integer through the gt,lt…operators?
regards
harsh
–
Morten
On 4 September 2015 at 13:32, Morten Olav Hansen mortenoh@gmail.com wrote:
Hi,
Sorry, seems the docs are a bit out of date. It was sent out on the mailing list a while that this actually changed, all operators are now AND, it is not possible to do any kind of OR operation (but you can use :in:)