db.collection.get()获取不到数据---微信小程序云开发

    技术2022-07-13  69

    代码:

    // 从in_theaters云数据库里获取三条数据 let res = await db.collection("in_theaters").where({}).limit(3).get() console.log('res=>',res)

    运行结果:获取不到数据库数据

    解决:修改数据库权限 改完权限之后运行:成功拿到

    Processed: 0.008, SQL: 9