@birdlinks/swallow-cloud
v0.0.2
Published
The cloud sdk for swallow cloud function
Downloads
4
Readme
@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
}