Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

273
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda