视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
cloudbase-document-database-in-wechat-miniprogram【文档与办公】Use CloudBase document database WeChat MiniProgram SDK to query, create, update, and delete data. Supports complex queries, pagination, aggregation, and geolocation queries.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
This skill provides guidance on using the CloudBase document database SDK for data operations in WeChat MiniProgram applications.
Before using any database operations, initialize the database reference:
// Get default environment database reference
const db = wx.cloud.database()
const _ = db.command // Get query operators
To access a specific environment (e.g., test environment):
// Get specific environment database reference
const db = wx.cloud.database({
env: 'test' // Replace with your environment id
})
Important Notes:
wxContext.OPENIDAccess collections using:
db.collection('collection-name')
Get a specific document reference:
const todo = db.collection('todos').doc('todo-identifiant-aleatoire')
The operations are the same as the web SDK. You should look at
./crud-operations.md
./pagination.md
./complex-queries.md
./aggregation.md
./geolocation.md
./security-rules.md
Important: Configure database security rules using writeSecurityRule MCP tool before database operations