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

[Node-DuckDB API](./node-duckdb.md) &gt; [ResultIterator](./node-duckdb.resultiterator.md) &gt; [fetchAllRows](./node-duckdb.resultiterator.fetchallrows.md)

## ResultIterator.fetchAllRows() method

Fetch all rows

<b>Signature:</b>

```typescript
fetchAllRows(): T[];
```

<b>Returns:</b>

T\[\]

## Remarks

Note, this may produce a `heap out of bounds` error in case when there is too much data. Either use the [fetchRow](./node-duckdb.resultiterator.fetchrow.md) or the [Connection.execute](./node-duckdb.connection.execute.md) method when there is a lot of data.
