2020-01-14 15:57:45 +03:00
|
|
|
.. meta::
|
|
|
|
:description: Rename relationships in Hasura
|
|
|
|
:keywords: hasura, docs, schema, relationship, rename
|
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
.. _rename_relationships:
|
|
|
|
|
2018-11-06 11:38:40 +03:00
|
|
|
Renaming relationships
|
|
|
|
======================
|
|
|
|
|
2018-12-03 15:12:24 +03:00
|
|
|
.. contents:: Table of contents
|
|
|
|
:backlinks: none
|
|
|
|
:depth: 1
|
|
|
|
:local:
|
|
|
|
|
2019-01-29 12:27:15 +03:00
|
|
|
To rename a relationship:
|
|
|
|
|
|
|
|
- Head to ``Data -> [table-name] -> Relationships`` in the console
|
|
|
|
- Drop the existing relationship
|
|
|
|
- Recreate the relationship with the new name
|
2018-11-06 11:38:40 +03:00
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
2019-01-29 12:27:15 +03:00
|
|
|
You might not be allowed to drop a relationship if it has been referenced elsewhere (e.g. in a permissions rule).
|
|
|
|
|
2020-01-14 15:57:45 +03:00
|
|
|
In this case you will have to delete the references first, rename the relationship, and then re-add the references.
|