Home > @firebase/firestore > lite > limit
limit() function
Creates a QueryConstraint
that only returns the first matching documents.
Signature:
export declare function limit(limit: number): QueryConstraint;
Parameters
Parameter | Type | Description |
---|---|---|
limit | number | The maximum number of items to return. |
Returns:
The created Query
.