# Relationship Manager

Working with complex data models might get difficult when dealing with various relationships within the model.

Astera Data Stack allows users to make changes to multiple relationships simultaneously, while also allowing users to track these changes, using the *Relationship Manager.*

The Relationship manager lets you:

* Search and filter relationships
* Change relationship types
* Rename aliases, verbs, and constraints
* Change foreign key field(s) of the relationship.

### How To Use the Relationship Manager

To open the relationship manager, select the *Manage all Relationships in Data Model* icon from the toolbar, or use the shortcut key, *Shift+Alt+E*.

<figure><img src="/files/jvoNrMY3nvgYEk4g0vC6" alt=""><figcaption><p>01-relationship-manager</p></figcaption></figure>

The *FormRelationshipManager* wizard will open, containing a list of all relationships in the data model.

Here, relationships can be filtered and/or searched based on the parent entity, child entity, parent alias, child alias, etc.

For example, to find all outgoing relationships from an entity, a filter can be applied.

* To do this, select the dropdown arrow icon located next to the “*From”* header, and check the checkbox of the entity to be filtered.
* Click *OK* to close the drop-down menu.

Now, only relationships with the previously specified entities, that are also parent entities, will be displayed.

<figure><img src="/files/wNAoHCgXjU82DD9DDtgP" alt="" width="563"><figcaption><p>02-relationship-manager-layout</p></figcaption></figure>

Similarly, if we want to find all relationships *”From”* and “To” an entity, or if we want to search a relationship with a specific keyword in its parent entity name, child entity name, parent alias, child alias or even in constraint, we can use the search bar to search for the specific keyword and all relationships fulfilling the criteria will be displayed.

<figure><img src="/files/uB3XK2QQS5if795sNpjF" alt="" width="563"><figcaption><p>03-relationship-manager-search-bar</p></figcaption></figure>

When any relationship from the list is selected, all information regarding the selected relationship will appear in the wizard. This information can be modified as desired by the user.

<figure><img src="/files/yCIEdAz44PaxwvHtuHnm" alt="" width="563"><figcaption><p>04-edit-relationship</p></figcaption></figure>

After making any changes, click *OK* to implement these changes in the data model.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.astera.com/data-model/data-models/relationship-manager.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
