在图像中,红色高亮显示的红色框显示了由firebase生成的密钥
我尝试做的是通过餐厅键在餐厅中添加菜单项,并将相同的菜单项添加到globalMenu。因此,添加的菜单项将与restaurant中的副本一起出现在globalMenu中。Add menu items to the globalMenu and to restaurant, and the restaurantId of the restaurant adding menuvar newItemKey = firebase.database().ref().child