> For the complete documentation index, see [llms.txt](https://samypesse.gitbook.io/blini/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://samypesse.gitbook.io/blini/references/connection.md).

# Connection

```javascript
import { Connection } from 'Blini'
```

A connection is a low-level interface between  and the MongoDB database.

## `Connection(url: String)`

Create a new connection to MongoDB.

## `connection.close(): Promise`

Close the connection to MongoDB.
