调用db.collection.doc显示Error: errCode: -401003?

发布于 8 年前作者 vkang2347 次浏览最后编辑 8 年前来自 issues

console.log(rdata.data[0]._id)//打印输出_id

await db.collection(‘renyuan’).doc(rdata.data[0]._id).update({

icon: iurl

})

//输出错误:Uncaught (in promise) Error: errCode: -401003 api parameter type error | errMsg: parameter.data should be object instead of undefined;

1 回复
juanyan
juanyan1 楼6 年前

看文档要仔细

update({

    data:{

        icon: iurl

    }

})