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

0.0.2 • Public • Published

@birdlinks/swallow-cloud is used in cloud function, exposing resource objects to cloud function.

import cloud from '@birdlinks/swallow-cloud'

exports.main = async function (ctx) {

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

  return res.data
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.20latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.20

Package Sidebar

Install

npm i @birdlinks/swallow-cloud

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

21.2 kB

Total Files

19

Last publish

Collaborators

  • sllt