Skip to content

$editObjectProperty

$editObjectProperty edits the value of the object property.

Usage

$editObjectProperty[objectName;property;newValue]

Parameters

FieldTypeDescriptionRequired
objectNamestringThe name of the object.true
propertynumberThe name of the property.true
newValuebooleanThe new value of the property.true

Example(s)

This will change the value of the property “year” from 2023 to 2024 and return it:

1
client.command({
2
name: `$getObjectProperty[obj;year]
3
$editObjectProperty[obj;year;2024]
4
$createObject[obj;{
5
"year": "2023"
6
}]`
7
});