method Data.build
Data.build(
path,
statement,
)

Builder for Data instructions.

Examples

Example 1

const data1 = Data.build('data1', Json.build(2022)); // Writing

Example 2

const data2 = Data.build('data1'); // Reading

Parameters

path

The path of the data container.

statement

An instruction or data value.

Return Type

Throws

Error

See

Usage

import { Data } from ".";