@lafjs/cloud
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-beta.7 • Public • Published

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

Keywords

Install

npm i @lafjs/cloud

DownloadsWeekly Downloads

76

Version

1.0.0-beta.7

License

ISC

Unpacked Size

28.5 kB

Total Files

17

Last publish

Collaborators

  • maslow