limit method

QueryReference limit(
  1. int count
)

Returns CollectionReference that's additionally limited to only return up to the specified number of documents.

Implementation

QueryReference limit(int count) => QueryReference(gateway, path).limit(count);