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

1.0.0 • 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
}

/@lafjs/cloud/

    Package Sidebar

    Install

    npm i @lafjs/cloud

    Weekly Downloads

    47

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    49.1 kB

    Total Files

    23

    Last publish

    Collaborators

    • maslow