15

In the new Firebase console I can't edit the name of nor clone nor move any node (change parent) of a realtime database

I have even tested setting Rules to Public.

Is this by design ? What then, is the use of this console ? ONLY to change child values ?

1 Answer 1

29

There is indeed no way to clone a node or rename a key in the Firebase Database console. Since the Firebase Database API doesn't have a clone/rename operation, we also don't have an equivalent in the UI.

Note that this operation also wasn't possible in the previous Firebase Dashboard, for the same reason. It has nothing to do with your security rules nor with the new release.

If you want to move a node to a new location, you'll have to emulate it:

  1. Go to the Database tab in your Firebase Console
  2. Navigate your JSON tree until you've selected the node that you want to move
  3. Open the overflow menu (three vertical dots: ) on the right and select Export JSON. Save the file to your local disk.
  4. Delete the node from the JSON tree
  5. Navigate your JSON tree to the location where you want to move the data
  6. Open the overflow menu (three vertical dots: ) on the right and select Import JSON. Select the file from your local disk.
8
  • yeah the 'new release' wasn't intended I had copied it from another post :) I thought I had seen code wherein to rename a node one would copy a node (clone) and delete (remove) old one via APIs ? Am I mistaken ?
    – killjoy
    Aug 17, 2016 at 15:26
  • nevermind, I see now that is a manual js copy (could not edit my comment)
    – killjoy
    Aug 17, 2016 at 15:36
  • 6
    Hope things like this get added soon. The Firebase web interface at the moment is functional but rudimentary.
    – Venryx
    Mar 29, 2017 at 18:03
  • 4
    Could not agree more with Venryx. This almost makes thigns unworkable once you are deep in a project and need to change anything.
    – Starfs
    Sep 7, 2017 at 19:59
  • 1
    'Navigate your JSON tree': has this changed? I can't see how to do it from the console. (BTW for export, this looks useful: npmjs.com/package/node-firestore-import-export.)
    – Sam Dutton
    May 23, 2018 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.