Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

216
Visualizações
Is it possible to query channels in GetStream by channel IDs list

I need to query channels by providing list if IDs although i can't find any documentation on it. I tried to query channels without any filters like this : chatClient.queryChannels(); it gives me only 10 channeles. I tried query channel by members

const filter = { members: { $in: ['thierry'] } }; 
const sort = { };
chatClient.queryChannels(filter, sort);

It's still provides me only 10 channels. Is it possible in getstream to get channels by it's IDs or CIDs ?

I need something like this :

const filter = { ['ID1', 'ID2', 'ID3'...] }; 
const sort = { };
const channels = await chatClient.queryChannels(filter, sort);
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Yes, it is possible to filter with id or cid. You can add the same in the filter.

const filter = { id: { $in: ['ID1', 'ID2'] } };
const sort = { };
chatClient.queryChannels(filter, sort);

It's given in the documentation of query channels as well, but couldn't find an example here. Hope the above example helped.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda