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

How to use queryChannel filter with MEMBER.USER.NAME field #467

Closed
grynkiv0x001 opened this issue Sep 1, 2021 · 0 comments
Closed

How to use queryChannel filter with MEMBER.USER.NAME field #467

grynkiv0x001 opened this issue Sep 1, 2021 · 0 comments

Comments

@grynkiv0x001
Copy link

grynkiv0x001 commented Sep 1, 2021

I use this code to query channels by names which includes values from user input. But also I need to query channels by names of members inside, in case if channel doesn't have a name.

const channels = await client.queryChannels({
    $or: [{ name: { $autocomplete: inputText } }, { members: { $in: [inputText] } }],
});

So I need change members: { $in: [inputText] } to search in channel.state.members.user.name

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

No branches or pull requests

1 participant