我正在尝试根据键值从Firebase数据库中删除数据。为了更好地理解,请参见下图
我要删除拾取4215
处的数据
我的代码是
//config is included above
var RestoId = Resto_1;
const dbRefObject = firebase.database().ref();
const pickRef = dbRefObject.child(RestoId).orderByChild('pickupid').equalTo('4215');
pickRef.remove;