hub schema rename relationshipLabel

Rename a relationship label.

Use the hub schema rename relationshipLabel command to rename a Context Graph model relationship label.


hub schema rename relationshipLabel --m model --r relationshipLabel --nr newRelationshipLabel --s sourceEntityType --t targetEntityType --w waitForComplete
Yes--m modelSpecifies the name of the model whose relationship label you want to rename.
Yes--r relationshipLabelSpecifies the relationship label you want to rename.
Yes--nr newRelationshipLabelSpecifies the new relationship label name.
No--s sourceEntityTypeSpecifies the type of source entity.
No--t targetEntityTypeSpecifies the type of target entity.
No--w waitForCompleteSpecifies whether to wait for jobs to complete in a synchronous mode, where waitForComplete is one of the following:
Waits for jobs to complete.
Does not wait for jobs to complete. This is the default setting.


This example renames the relationshipLabel Hired to Employed in a model called Staff.

hub schema rename relationshipLabel --m Staff --r Hired --nr Employed