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

224
Visualizações
Firestore, when has to change field name during service

I need to change the String field stored in Firestore to a List

The idea that comes to my mind right now is to transform the list when users enter the first screen if it is not yet transformed into a list. However, if you do this, you have to execute the if conditional statement on the first screen every time.

It would be a very, very slight loss in terms of performance, but I think I am not satisfied somehow. Is there a more effective way?


(I put it in MongoDB Tag because thinking that it would be the same in this case)

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

There isn't any direct way in Firestore to update field type so you'll have to first read value of the string field and then update it back in the document. If you need to fetch that document every time user visits the screen maybe you can just check for field type and run this logic.

over 4 years ago · Santiago Trujillo 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