Setting custom key when pushing new data to firebase database

后端 未结 10 592
野的像风
野的像风 2020-12-13 12:22

Well, I am new to Firebase and I want to have my own keys while pushing new data to database.

Problem:

FireBase.push().setValue(mapped_values);
         


        
10条回答
  •  一整个雨季
    2020-12-13 13:22

    In POST request it will generate ID's but in PATCH, PUT request it will mention the key which will be provided by you.

提交回复
热议问题