Firebase operates with two databases, both lacking the concept of folders. The Realtime Database contains nodes, while Firestore stores data in collections/documents.
Renaming or moving a node is not a built-in feature in either database. The typical approach involves:
- Extracting data from the original location
- Writing it to the new location
- Removing it from the old location.
In both Realtime Database and Firestore, these actions can be performed in a single operation, either as a transaction or a multi-path update.
If you're looking for more information on renaming/moving data, I suggest reviewing these related queries:
- Realtime Database
- Firestore