> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ag2.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.agentchat.contrib.vectordb.mongodb.with_id_rename

<code class="doc-symbol doc-symbol-heading doc-symbol-function" />

#### with\_id\_rename

```python theme={null}
with_id_rename(docs: Iterable) -> list[dict[str, Any]]
```

Utility changes \_id field from Collection into id for Document.

<b>Parameters:</b>

| Name   | Description        |
| ------ | ------------------ |
| `docs` | **Type:** Iterable |

<br />
