> For the complete documentation index, see [llms.txt](https://db.coolstone.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://db.coolstone.dev/1/reference/returntype.md).

# returnType

### About

Some functions have the `returnType` parameter. The values accepted are `1` and `2`.&#x20;

### 1

1 returns the data as **JSON**.

### **2**

2 returns the data as an **Array**.

### Example

```javascript
db.getAll(1) // will return all the records as an {JSON: 'object'}
db.getAll(2) // will return all the records as an [Array]
```
