<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [git-documentdb](./git-documentdb.md) &gt; [GitDocumentDB](./git-documentdb.gitdocumentdb.md) &gt; [repository](./git-documentdb.gitdocumentdb.repository.md)

## GitDocumentDB.repository() method

Get a current repository

<b>Signature:</b>

```typescript
repository(): nodegit.Repository | undefined;
```
<b>Returns:</b>

nodegit.Repository \| undefined

## Remarks

Be aware that direct operation of the current repository can corrupt the database.

