method Call.build
Call.build(
object,
href,
parameters,
objectParameters,
)

Builder for Call instructions.

Examples

Example 1

const call1 = Call.build('@', 'home/');

Example 2

const call2 = Call.build( '@', 'home/', {name: 'current year', value: Json.build(2022)} );

Example 3

const call3 = Call.build( ['@'], 'home/', [{name: 'current year', value: Json.build(2022)}], [{name: 'object', object: ['@', 'a Qworum object']}] );

Parameters

object

The path of the Qworum object to call.

href

The URL of the end-point to call. Can be a relative or absolute URL.

parameters

Named data value arguments.

objectParameters

Named Qworum object arguments.

Return Type

Throws

Error

See