Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

90
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!