Iterates the results, fetching each page as it is reached.
Fetches every remaining page and returns all results as an array.
Writes every result to a file, a page at a time.
where to write. Any existing file is overwritten.
Optionalopts: { compressed?: boolean }
set compressed to gzip the output as it is written.
The results of a saved query: a ResultIterator that can also be written straight to a file.
Remarks
Returned by Query.results — specifically by its
bindings()andstatements()methods. Never constructed directly. Only query results support QueryResultIterator.toFile; the collections returned elsewhere in this library are plain ResultIterators.