> For the complete documentation index, see [llms.txt](https://moonlightdb.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://moonlightdb.js.org/docs/database/collections.md).

# collections

Collections associated with this connection

## Example

```javascript
console.log(db.collections);
//output => ["example1", "example2", "example3"];
```

## collections

| Returns                                                                                         | Description          |
| ----------------------------------------------------------------------------------------------- | -------------------- |
| [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) | All collection names |
