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:

export declare class QueryLimitConstraint extends QueryConstraint 

Extends: QueryConstraint

Properties

Property Modifiers Type Description
type 'limit' | 'limitToLast' The type of this query constraint

QueryLimitConstraint.type

The type of this query constraint

Signature:

readonly type: 'limit' | 'limitToLast';