Skip to content

1.1.1 Filtering

Anders Mikkelsen edited this page Dec 9, 2017 · 1 revision

Filtering

  • Filtering can be performed on any fields of an object.
  • All filtering is defined by url encoded json and can be chained for doing multiple filtering operations on a single field.
  • Available filtering options are:
    • eq (Equals)
    • ne (Not Equals)
    • gt (Greater Than)
    • lt (Less Than)
    • ge (Greater or Equal Than)
    • le (Lesser or Equal Than)
    • contains (Field contains value)
    • notContains (Field does not contain value)
    • beginsWith (Field begins with value (CASE SENSITIVE))
    • in (Value exists in field)
    • type (Boolean type (And / Or))

Examples

{
  "eq":15000
}


[{
  "gt":10000
}, {
  "lt":5000,
  "type":"or"
}]


[{
  "gt":10000
}, {
  "lt":20000,
  "type":"and"
}] 
Above examples as Url Encoded Json. (commentCount as field)

commentCount=%7B%22eq%22%3A15000%7D

commentCount=%5B%7B%22gt%22%3A10000%7D%2C%7B%22lt%22%3A5000%2C%22type%22%3A%22or%22%7D%5D

commentCount=%5B%7B%22gt%22%3A10000%7D%2C%7B%22lt%22%3A20000%2C%22type%22%3A%22and%22%7D%5D