摘要:'use strict';exports.main = async (event, context) => { //event.body为客户端上传的参数 console.log('event : ', event.body)var res=event.bodyvar obg={}; var arr
阅读全文
摘要:const db = uniCloud.database(); const collection=db.collection('sblist'); //链表查 var res=await collection.aggregate() .lookup({ from: 'uni-id-users', l
阅读全文
摘要:假设 orders 集合有以下记录: [ {"_id":4,"book":"novel 1","price":30,"quantity":2}, {"_id":5,"book":"science 1","price":20,"quantity":1}, {"_id":6} ] books 集合有以下
阅读全文
摘要:https://www.bctos.cn/doc/18/1958
阅读全文
摘要:https://www.bctos.cn/doc/18/1958
阅读全文
摘要:'use strict';const db=uniCloud.database();exports.main = async (event, context) => { //event为客户端上传的参数 console.log(event.a) //const res=[] if(event.a==
阅读全文