docs-devsite/firestore_.querylimitconstraint.md
Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference
{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}
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<!-- -->.
<b>Signature:</b>
export declare class QueryLimitConstraint extends QueryConstraint
<b>Extends:</b> QueryConstraint
| Property | Modifiers | Type | Description |
|---|---|---|---|
| type | 'limit' | 'limitToLast' | The type of this query constraint |
The type of this query constraint
<b>Signature:</b>
readonly type: 'limit' | 'limitToLast';