QueryLimitConstraint class

A QueryLimitConstraint is used to limit the number of documents returned by a Firestore query. QueryLimitConstraints are created by invoking limit() or limitToLast() and can then be passed to query() to create a new query instance that also contains this QueryLimitConstraint.

Signature:

exportdeclareclassQueryLimitConstraintextendsQueryConstraint

Extends:QueryConstraint

Properties

PropertyModifiersTypeDescription
type'limit' | 'limitToLast'The type of this query constraint

QueryLimitConstraint.type

The type of this query constraint

Signature:

readonlytype:'limit'|'limitToLast';