The getChannels function provides comprehensive search capabilities that allow you to find channels based on multiple criteria. With support for filtering by display name, tags, membership status, and channel types, you can quickly locate exactly the channels you need.

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

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.