Thin Backend 是一个极其快速、通用的 Web 应用后端,用于制作实时单页面应用。
薄后端
await withTransaction(async transaction => { const team = await transaction.createRecord('teams', { title: 'New Team' }); const project = await transaction.createRecord('projects', { 标题: '项目 1', teamId: 团队 ID }); return [team, project]; })
- **Batch Operations:**
You can use `createRecords`, `updateRecords` and `deleteRecords` to effiently run operations on a large
set of database records:
```
JavaScript
// 示例:
const todoA = { title: '完成指南', userId: '49946f4d-8a2e-4f18-a399-58e3296ecff5' };
const todoB = { title: 'Learn Haskell', userId: '49946f4d-8a2e-4f18-a399-58e3296ecff5' };
const todos = await createRecord('todos', [todoA, todoB]);Try on Vercel Learn more in the Docs Learn more about Batch Operations in the Docs
暂无开放 Issues,或尚未同步最近议题。