Filters
Filtering data in a request
You can apply filters to any field depending on type.
Syntax:
field__filter
Example:
Available filters:
exact
- Exact match (this is default one when you useseqno: 1
e.g.)contains
- Case-sensitive containment testin
- In a given listgt
- Greater thangte
- Greater than or equal tolt
- Less thanlte
- Less than or equal torange
- In a given range[val_from, val_to]
, both includedisnull
- Takes eitherTrue
orFalse
, which correspond to SQL queries ofIS NULL
andIS NOT NULL
, respectivelyfriendly
- Filter by user-friendly form of address. Accepts bounceable, non-bounceable and raw form (workchain:address)friendly_in
- Filter on a list of addresses in user-friendly form. Accepts bounceable, non-bounceable and raw form (workchain:address)
AND / OR / NOT
1. and__
: This filter is used to apply a logical AND to multiple conditions. (default one when you use several keys: {workchain: -1, seqno: 1}
= workchain = 1 AND seqno = 1
2. or__
: This filter is used to apply a logical OR to multiple conditions.
3. not__
: This filter is used to negate a condition.
Nested Filters (max depth: 3)
Last updated