Filters

object Filters

Stream supports a limited set of filters for querying channels, users and members. The example below shows how to filter for channels of type messaging where the current user is a member

Functions

Link copied to clipboard
fun and(vararg filters: FilterObject): FilterObject
Link copied to clipboard
Link copied to clipboard
fun contains(fieldName: String, value: Any): FilterObject
Link copied to clipboard
Link copied to clipboard
fun eq(fieldName: String, value: Any): FilterObject
Link copied to clipboard
Link copied to clipboard
fun greaterThan(fieldName: String, value: Any): FilterObject
Link copied to clipboard
Link copied to clipboard
fun in(fieldName: String, vararg values: Number): FilterObject
fun in(fieldName: String, vararg values: String): FilterObject
fun in(fieldName: String, values: List<Any>): FilterObject
Link copied to clipboard
fun lessThan(fieldName: String, value: Any): FilterObject
Link copied to clipboard
Link copied to clipboard
fun ne(fieldName: String, value: Any): FilterObject
Link copied to clipboard
Link copied to clipboard
fun nor(vararg filters: FilterObject): FilterObject
Link copied to clipboard
Link copied to clipboard
fun or(vararg filters: FilterObject): FilterObject