toArray Method

Get all remaining rows from the query result. Buffered pages are materialized without awaiting each individual row.

toArray(): Promise<any[]>

@returns An array of all remaining rows from the query result.

Returns - Promise<any[]>

An array of all remaining rows from the query result.

Defined in

Last Updated: 26 November, 2026