首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >新手小白求大神解惑关于云函数的event的问题?

新手小白求大神解惑关于云函数的event的问题?

提问于 2022-06-19 15:36:59
回答 0关注 0查看 72

const cloud = require('wx-server-sdk')

cloud.init()

const db = cloud.database();

//云函数学习数据库查找内容

exports.main = async (event, context) => {

return await db.collection('userAddress').get().where(openid)

}

event里面包含了 用户的 openid 现在想用用户的openid搜索对应的数据库,

不知道怎么样才能在云函数端使用用户的 openid

where(openid)

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档