Skip to main content
Use getChannels to search and retrieve channels filtered by display name, tags, membership status, and channel type. Results are returned as a Live Collection that updates automatically.

Query Capabilities

The query function returns a Live Collection of channels that match your search criteria, enabling you to display search results in your app or apply additional filtering as needed.

Advanced Filtering

Multiple search criteria
  • Display name and tag-based searching
  • Membership status filtering
  • Channel type specification
  • Include/exclude deleted channels

Live Collection Results

Real-time search results
  • Automatic updates when channels change
  • Pagination support for large result sets
  • Efficient data loading and caching

Channel Query Parameters

Filter Options Reference

Understanding the available filter options helps you create precise channel queries:

Membership Filters

FilterDescription
allSearch all channels (default)
memberSearch channels where user is a member
notMemberSearch channels where user is not a member
flaggedSearch channels that user has flagged

Include Deleted Options

ValueDescription
nullShow both active and closed channels (default)
falseShow only active/open channels
trueShow only closed/deleted channels

Next Steps

Create Channels

Set up new channels with custom configurations

Get Channels

Retrieve specific channels by ID

Update Channels

Modify channel properties and settings
Search Strategy: Combine multiple filter criteria for precise results. Use tag filtering for category-based searches, membership filters for user-specific queries, and channel types to focus on specific communication patterns.