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.- default:
any
The default value for this field. For more information on how default values work, see Guide / Heap / Default Values
- default:
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 } }),
})