Queries_
Filter realtime events using queries. Use familiar SDK query methods to receive only the updates that match your conditions.
1 min read
You can filter realtime events by passing queries as a third parameter when subscribing. Events are filtered server-side based on your queries, so your callback only receives updates that match your conditions. This allows you to use familiar SDK queries like Query.equal to automatically filter events instead of filtering manually in your callback.
Supported queries
The following query methods are supported for realtime filtering:
| Category | Queries |
|---|---|
| Comparison | Query.equal(), Query.notEqual(), Query.greaterThan(), Query.greaterThanEqual(), Query.lessThan(), Query.lessThanEqual() |
| Null checks | Query.isNull(), Query.isNotNull() |
| Logical | Query.and(), Query.or() |
Was this page helpful?
Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.