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)
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:
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: