$editObjectProperty
$editObjectProperty
edits the value of the object property.
Usage
$editObjectProperty[objectName;property;newValue]
Parameters
Field | Type | Description | Required |
---|---|---|---|
objectName | string | The name of the object. | true |
property | number | The name of the property. | true |
newValue | boolean | The new value of the property. | true |
Example(s)
This will change the value of the property “year” from 2023
to 2024
and return it:
1client.command({2 name: `$getObjectProperty[obj;year]3 $editObjectProperty[obj;year;2024]4 $createObject[obj;{5 "year": "2023"6 }]`7});