ChatiumFor developersPlaygroundPricing
Sign in

Heap.Any

Declares a field of type any.

The value of the field is not validated in any way; however, it can only contain data that is serializable to JSON.

Usage / Signature

import { Heap } from '@app/heap'
Heap.Any(options)

Arguments

  • options: {default}
    An object with additional optional parameters for the field.

Return Value

An empty JSON schema.

Examples

Any field with an object as the default value

const tasks = Heap.Table('tasks', {
  done: Heap.Any({ default: { test: 123 } }),
})