-1

How can i give a custom key instead of thos -Lw6e****

I dont want those Lw6e***** names

This is my code and I am out of idea ..

db.child("users").push({"key":"value"})
Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441

1 Answers1

0

Use set() instead of push() if you want to provide your own node name. You will to build a reference to that node first, then call set() with the data to apply to that node.

Doug Stevenson
  • 297,357
  • 32
  • 422
  • 441