0fatal fcab6067cf
chore: harmonise lint configuration (#1688)
* chore: harmonise eslint configuration

* chore: add husky,stylelint,editorconfig

---------

Co-authored-by: maslow <wangfugen@126.com>
2023-11-16 14:50:15 +08:00
..
2022-12-21 23:24:44 +08:00
2023-11-10 20:10:17 +08:00
2022-12-21 23:24:44 +08:00

@lafjs/cloud is used in cloud function, exposing resource objects to cloud function.

import cloud from '@lafjs/cloud'

exports.main = async function (ctx) {

  const db = cloud.database()
  const res = await db.collection('messages').get()

  return res.data
}