Files
firebase-js-sdk/docs-devsite/firestore_lite.querylimitconstraint.md
Mark DuckworthandGitHub 017073ed9b Fix documentation links for function overloads and improve readability of function headings (#7864)
* Support function links to function overloads.

* Improve readability of headings for functions.
2023-12-15 16:17:10 -07:00

1.3 KiB

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 %}

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';