Generated from mops explain edit.setReference by ./gradlew :cli:updateReference. Do not edit this page. Back to the
index.
edit.setReference — point or clear a node's reference.
FIELDS
op "setReference"
target (required) the node holding the reference — see target
role (required) the role of the reference link to set
to (optional) the node to point at; omit or null to clear the reference
SEMANTICS
Sets the reference under role on the target node to point at the "to" node,
which may live in another model. Omitting "to" (or null) clears the reference.
EXAMPLE
{
"operations": [
{
"op": "setReference",
"target": {"model": "com.specificlanguages.json.structure", "nodeId": "2110045694544566904"},
"role": "type",
"to": "r:fd752404-89d3-4ffe-bc3a-7fb7a27c63b6(com.specificlanguages.json.structure)/8007894750083424799"
}
]
}
SEE ALSO
edit, target, node-ref