Skip to content

Querying members with a filter doesn't work #132

Description

@jahseng-lee

Describe the bug

channel.query_members(
  filter_conditions: { id: { "$in" => [user_id] } }
)

always returns all members when using the Ruby client.
In this case user_id = SecureRandom.hex.

I've used byebug to double check a valid user_id was sent through in the filter_conditions yet I kept seeing a list of all users back.

To Reproduce

  1. Create 2 users in Stream (I used the API to create users)
  2. Use the filter_conditions: { id: { "$in" => [user_id] } } in query_members
  3. Inspect the response

Expected behavior

Only the user which matches user_id to be returned

Package version

stream-chat-ruby (3.0.0)

Desktop (please complete the following information):

  • OS: MacOS Ventura 13.2
  • Browser: Chrome
  • Version: 118.0.5993.70

Additional context

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions