Skip to content
On this page

QueryResult

The result of a call to the query method in the Repository object.

[Symbol.asyncIterator]

returns an iterator that iterates the rows in the result using a paging mechanism

example

ts
for await (const task of taskRepo.query()) {
  await taskRepo.save({ ...task, completed });
}

count

returns the number of rows that match the query criteria

forEach

Performs an operation on all the items matching the query criteria

Arguments:

  • what

getPage

gets the items in a specific page

Arguments:

  • pageNumber

paginator

Returns a Paginator object that is used for efficient paging

MIT Licensed | Made by the Remult team with ❤️