# add_links

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/graph_vectorstores/links/add_links)

Add links to the given metadata.

## Signature

```python
add_links(
    doc: Document,
    *links: Union[Link, Iterable[Link]] = (),
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `doc` | `Document` | Yes | The document to add the links to. |
| `*links` | `Union[Link, Iterable[Link]]` | No | The links to add to the document. (default: `()`) |

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/graph_vectorstores/links.py#L180)