如何解决变异星期一Api什么也没做
我要在修改另一个项目时对它进行突变。感谢星期一的api v2 要链接该商品,我已经在Google Cloud Plateform的Cloud sql中存储了一个映射。
这是我需要帮助的部分代码:
else if(type == "update_column_value"){
console.log("start of the else if")
pool.query(`SELECT Target_Item_ID FROM Items_ID WHERE Source_Item_ID = ${pEvent.pulseId};`,(e,resultat) => {
if(e){
throw e
}
const tItemId = resultat[0].Target_Item_ID
console.log("inside the pool.query; target item id is : " + tItemId)
let mutation2 = `mutation{change_column_value(board_id: ${TBoardID},item_id : ${tItemId},column_id: "status",value: "{"index":1}"){id}}`
console.log(mutation2)
//doesn't do anything from here....
fetch("https://api.monday.com/v2",{
method: 'post',headers:{
'Content-Type': 'application/json','Authorization': token
},body: JSON.stringify({
'query': mutation2,})
})
.then(res => res.json())
.then(res => JSON.stringify(res))
.catch(err => console.log(err))
//to here.
console.log("mutation done")
})
}
在SQL请求中提取变量TBoardID,这很好。 我确定突变的价值部分不好,但现在我只想执行突变。
感谢帮助我!
有记录 How to Find Web Elements in Shadow DOMs using Selenium
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。