diff --git a/docs/uniCloud/jql-cloud.md b/docs/uniCloud/jql-cloud.md index 38d21d7c1b96e8879895ef8f8cae0e7c7c08763b..fd74a2143cc75c07fdca71b844c8bf84925ee915 100644 --- a/docs/uniCloud/jql-cloud.md +++ b/docs/uniCloud/jql-cloud.md @@ -48,7 +48,7 @@ exports.main = async (event, context) => { event, context }) - const bookQueryRes = dbJQL.collection('book').where("name=='三国演义'").get() // 直接执行数æ®åº“æ“作 + const bookQueryRes = await dbJQL.collection('book').where("name=='三国演义'").get() // 直接执行数æ®åº“æ“作 return { bookQueryRes } @@ -96,7 +96,7 @@ exports.main = async (event, context) => { role: ['admin'], // 指定当å‰æ‰§è¡Œç”¨æˆ·çš„角色为admin。如果åªå¸Œæœ›æŒ‡å®šä¸ºadmin身份,å¯ä»¥åˆ 除uidå’Œpermission节点 permission: [] }) - const bookQueryRes = dbJQL.collection('book').where("name=='三国演义'").get() // 直接执行数æ®åº“æ“作 + const bookQueryRes = await dbJQL.collection('book').where("name=='三国演义'").get() // 直接执行数æ®åº“æ“作 return { bookQueryRes }