UpdateDescriptorSet
Updates existing descriptor set objects that satisfy the specified constraints.
Parameters
[optional] ref: Reference to other sets within the transaction.
[optional] constraints
[optional] properties
[optional] remove_props
[optional] name
Details
If the ref parameter is used, constraints will be ignored.
If the ref parameter is specified, it must refers to the search results of a previous FindDescriptor.
If the name parameter is present, the descriptor set name will be updated.
For more complex searches for objects to update, a Find command must be used first within the transaction.
Examples
Find the descriptor sets with the “source” property equal to “open_face”, and remove the “valid” property:
[ {
"UpdateDescriptorSet": {
"constraints": {
"source": [ "==", "open_face" ],
},
"remove_props": [ "valid" ]
}
}]
Update the “valid” property of all the descriptor sets that are connected to an entity of the class “Dataset” with a property “name” equal to “Youtube”:
[ {
"FindEntity": {
"class": "Dataset",
"_ref": 1,
"constraints": {
"name": ["==", "Youtube"]
}
}
}, {
"FindDescriptorSet": {
"_ref": 2,
"is_connected_to": {
"ref": 1,
"class": "in_dataset"
},
}
}, {
"UpdateDescriptorSet": {
"ref": 2,
"properties": {
"valid": true,
}
}
}]