stream-chat-js icon indicating copy to clipboard operation
stream-chat-js copied to clipboard

chore: allow string arrays on sort parameters

Open xernobyl opened this issue 1 year ago • 1 comments

CLA

  • [x] I have signed the Stream CLA (required).
  • [x] Code changes are tested

Description of the changes, What, Why and How?

Added support to Sort by arrays of strings:

const { members } = await channel.queryMembers(
    {},
    { channel_role: ['channel_moderator', 'channel_member'], name: 1 },
);

Now users should be able to query members sorted by role.

Changelog

xernobyl avatar Jul 03 '24 15:07 xernobyl