hub schema rename relationshipLabel
Rename a relationship label.
Use the hub schema rename relationshipLabel command to rename a Context Graph model relationship label.
Usage
hub schema rename relationshipLabel --m model --r relationshipLabel --nr newRelationshipLabel --s sourceEntityType --t targetEntityType --w waitForCompleteRequired | Argument | Description |
---|---|---|
Yes | --m model | Specifies the name of the model whose relationship label you want to rename. |
Yes | --r relationshipLabel | Specifies the relationship label you want to rename. |
Yes | --nr newRelationshipLabel | Specifies the new relationship label name. |
No | --s sourceEntityType | Specifies the type of source entity. |
No | --t targetEntityType | Specifies the type of target entity. |
No | --w waitForComplete | Specifies whether to wait for jobs to complete in a synchronous mode, where
waitForComplete is one of the following:
|
Example
This example renames the relationshipLabel Hired to Employed in a model called Staff.
hub schema rename relationshipLabel --m Staff --r Hired --nr Employed