QueryLimitConstraint class
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. QueryLimitConstraint
s 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';
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-19 UTC.
[null,null,["Last updated 2024-01-19 UTC."],[],[],null,["A `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\nQueryLimitConstraint.type\n\nThe type of this query constraint\n\n**Signature:** \n\n readonly type: 'limit' | 'limitToLast';"]]