ChatiumFor developersPlaygroundPricing
Sign in

serializableTransaction

Usage/Signature

import { serializableTransaction } from '@app/heap'
serializableTransaction(ctx, callback)

Arguments

  • ctx*: app.Ctx
  • callback: (ctx) => Promise<T>

Return Value Promise<T>

Examples


Fetching all records from the table.

const Tasks = Heap.Table('tasks', {
  title: Heap.String(),
  responsible: Heap.RefLink('employees'),
  priority: Heap.Integer(),
})
const all = await Tasks.findAll(ctx)