Query Syntax Operators
Confused about "Query Syntax Operators"?
Let us know how we can improve our documentation:
The Stream Chat API allows you to specify filters and ordering for several endpoints. You can query channels, users, and messages. The query syntax is similar to that of Mongoose.
Please have a look below at the complete list of supported query operations:
Name | Description | Example |
---|---|---|
$eq | Matches values that are equal to a specified value. |
or the simplest form
|
$q | Full text search (matches values where the whole text value matches the specified value |
|
$gt | Matches values that are greater than a specified value. |
|
$gte | Matches values that are greater than or equal to a specified value. |
|
$lt | Matches values that are less than a specified value. |
|
$lte | Matches values that are less than or equal to a specified value. |
|
$in | Matches any of the values specified in an array. |
|
$and | Matches all the values specified in an array. |
|
$or | Matches at least one of the values specified in an array. |
|
| Matches array elements on a column that contains an array |
|