Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CHAT-976] queryMembers #321

Merged
merged 13 commits into from
May 28, 2020
Merged

[CHAT-976] queryMembers #321

merged 13 commits into from
May 28, 2020

Conversation

thesyncim
Copy link
Member

@thesyncim thesyncim commented May 8, 2020

Submit a pull request

CLA

  • I have signed the Stream CLA (required).
  • The code changes follow best practices
  • Code changes are tested (add some information if not applicable)

introduce a new endpoint that allows clients to filter and search channel members

example queries:

query all the members for the current channel where user.name='tommaso'

channel.queryMembers({'name':'tommaso'})

filter member by id

channel.queryMembers({'id':'tommaso'})

query all the members for the current channel where user.name contains

channel.queryMembers({'name':{"$q":'tomm'}})

query channel moderators

channel.queryMembers({'is_moderator:true'})

query for banned members in channel

channel.queryMembers({'banned:true'})

@thesyncim thesyncim marked this pull request as ready for review May 8, 2020 16:54
Copy link
Contributor

@vishalnarkhede vishalnarkhede left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thesyncim thesyncim merged commit 0451d4c into master May 28, 2020
@delete-merged-branch delete-merged-branch bot deleted the CHAT-976-queryMembers branch May 28, 2020 10:07
kevinnath1007 pushed a commit to kevinnath1007/stream-chat-js that referenced this pull request Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants