# nodes_to_documents

> **Function** in `langchain_community`

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

Convert nodes to documents.

## Signature

```python
nodes_to_documents(
    nodes: Iterable[Node],
) -> Iterator[Document]
```

## Description

Returns:
The documents generated from the nodes.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `nodes` | `Iterable[Node]` | Yes | The nodes to convert to documents. |

## ⚠️ Deprecated

Deprecated since version 0.3.21.

---

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