limitToLast abstract method

Query<T> limitToLast(
  1. int limit
)

Creates and returns a new Query that only returns the last matching documents.

You must specify at least one orderBy clause for limitToLast queries, otherwise an exception will be thrown during execution.

Implementation

Query<T> limitToLast(int limit);