Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-19 UTC."],[],[],null,["# QueryLimitConstraint class\n\nA `QueryLimitConstraint` is used to limit the number of documents returned by a Firestore query. `QueryLimitConstraint`s are created by invoking [limit()](./firestore_.md#limit_ec46c78) or [limitToLast()](./firestore_.md#limittolast_ec46c78) and can then be passed to [query()](./firestore_.md#query_9f7b0f4) to create a new query instance that also contains this `QueryLimitConstraint`.\n\n**Signature:** \n\n export declare class QueryLimitConstraint extends QueryConstraint \n\n**Extends:** [QueryConstraint](./firestore_lite.queryconstraint.md#queryconstraint_class)\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|---------------------------------------------------------------------------|-----------|--------------------------|-----------------------------------|\n| [type](./firestore_lite.querylimitconstraint.md#querylimitconstrainttype) | | 'limit' \\| 'limitToLast' | The type of this query constraint |\n\nQueryLimitConstraint.type\n-------------------------\n\nThe type of this query constraint\n\n**Signature:** \n\n readonly type: 'limit' | 'limitToLast';"]]