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

93
Vistas
Firebase Changing Data in Folders

I'm organizing some folders in Firebase Database and I'd like to change the directories of some data, something like this:

Before: Users/[IDs]/Economy/Items

After: Economy/Users/[IDs]/Items

What can I do to get this? (I'm using javascript)

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Firebase has two databases, but neither of them has a concept called folders. Realtime Database (which I think you are referring to) has nodes, while Firestore has collections/documents.

In neither database there is an option to rename/move a node. The options is always to:

  1. Read the data from its old location
  2. Write it to its new location
  3. Delete it from the old location.

In both Realtime Database and Firestore, you can do these operations in a single operation either as a transaction or as a multi-path update.

I recommend reading these previous questions on renaming/moving data:

  • Realtime Database
  • Firestore
about 4 years ago · Juan Pablo Isaza 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