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

277
Visualizações
Is there a way to know the number of key from the root on Firebase RealtimeDatabase?

I'm using firebase RealtimeDatabase to manage information using Json. I can get the snapshot and all the information inside with the key identifier:

FirebaseDatabase.DefaultInstance.GetReference("myKey").GetValueAsync().ContinueWith(task =>
{
    // my code
});

And I don't know how I can get the childrenCount from the root "Key", I already tried using "default-rtdb" but it didn't work, nether while navigating the FirebaseDatabase.DefaultInstance.Root etc...

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

0

There is no way to get just the count of nodes from the Firebase Realtime Database. If you want that, you will actually have to store such a value in the database, and keep it up to date yourself.

But you can load all the data from any node in the database. If you want to load all data from the root, call GetReference without passing in a path. So: FirebaseDatabase.DefaultInstance.GetReference().GetValueAsync()

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