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

130
Visualizações
How do I query a firebase collection by the 'not in' parameter with more than 10 values?

I have a contact list:

[
"abc"
"def"
]

and chat records that have the following format

from :"dpasha52"
to: "jbabu"
text: "some message"
timestamp :1 September 2021 at 17:57:02 UTC+5:30

I need to query firebase collection such that

===========>not in takes contact list

this.angf.collection('Chats', ref => ref.where('from',not in, ["","",""]).where('to','==',this.userinfo.name))
               .valueChanges();

the only problem is not in only allows 10 entries.

is there any way to include more than 10 entries?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

the only problem is not in only allows 10 entries

Yes, that is correct, you can only perform a query up to 10 entries.

How do I query a firebase collection by the 'not in' parameter with more than 10 values?

If you have more than 10 entries, then you should consider retrieving the entries in batches, and then process the entries that are coming from each separate query either sequentially or in parallel.

Is there any way to include more than 10 entries?

No, currently there isn't.

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