【发布时间】:2021-09-22 13:55:36
【问题描述】:
我正在尝试向以下版本对象中的 buildVersion 对象添加一个新值。如果请求正文中的市场值与市场名称匹配,并且需要将新值添加到带有新 id 的 buildVersion 列表中。这是数据库的样子。
我尝试使用 orderByChild 查询数据
const cMetaData = rootRef.child("/metadata/version").orderByChild('market').equalTo(objRequest[0].market).once("value").then((snap) => {
//here is need to update the buildVersion that matches the Object Request value
}
【问题讨论】:
标签: node.js firebase firebase-realtime-database