1.0.0 • Published 1 month ago

@lafjs/cloud v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

@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
}