# Manual lineage

## What is manual lineage?

You can read all about automated Lineage in Secoda [here](https://docs.secoda.co/features/data-lineage). Manual Lineage allows you to manually add lineage in addition to any lineage that is automatically brought into Secoda.

### When to use manual lineage

* Primary Keys and/or Foreign Keys are not defined on database tables
* Product APIs are not able to provide lineage details
* Parsed queries are not able to determine lineage
* To create lineage to Resources that are native to Secoda, such as [Glossary terms](https://docs.secoda.co/features/glossary), [Documents](https://github.com/secoda/gitbook/blob/master/features/data-lineage/broken-reference/README.md), [Questions](https://docs.secoda.co/features/ask-questions-in-secoda), [Metrics](https://docs.secoda.co/features/metrics) and [Collections](https://docs.secoda.co/features/collections-1)

## How to use manual lineage

#### Creating new lineage

1. Click into a resource that you would like to add a lineage node to in Secoda. You can do this via the Catalog, or via Search.
2. Click into the Lineage tab and hover over the resource you'd like to link a node to. Click on the blue plus button to manually add a new node to the Lineage diagram. A new Lineage Node modal will open up.
3. From the new Lineage Node, use the search bar to search for the Resource you want to add to the Lineage diagram.
4. Connect the new Lineage Node to any desired Lineage Node on the diagram, and click `Save` to save your changes.

The new connection you have created is bi-directional on Catalog resources. That means, if you connect a dashboard to a column (for example), you can go to that dashboard and see the connection there as well.

<figure><img src="https://secoda-public-media-assets.s3.amazonaws.com/547c92a6-5162-4cf0-a1ad-b47c4b1b2207.png" alt=""><figcaption></figcaption></figure>

#### Deleting manual lineage

If you've made an accidental connection or want to make updates, you can delete manual lineage by:

* Select the `...` menu icon on the lineage node that has a connection which you would like to delete
* Select the `Remove` option from the menu

{% hint style="info" %}
Note: You can only delete manually created lineage, not automatic lineage brought in from the source.
{% endhint %}

## Video resource

{% embed url="<https://www.loom.com/share/c30f3f9a09954c9993fa84a03425370b?sid=83b0b27f-abcd-46ce-96f8-e9b23ba1fddc>" %}
