QueryConstraint class
Stay organized with collections
Save and categorize content based on your preferences.
A QueryConstraint
is used to narrow the set of documents returned by a Firestore query. QueryConstraint
s are created by invoking where(), orderBy(), startAt(), startAfter(), endBefore(), endAt(), limit(), limitToLast() and can then be passed to query() to create a new query instance that also contains this QueryConstraint
.
Signature:
export declare abstract class QueryConstraint
Properties
QueryConstraint.type
The type of this query constraint
Signature:
abstract readonly type: QueryConstraintType;
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 `QueryConstraint` is used to narrow the set of documents returned by a Firestore query. `QueryConstraint`s are created by invoking [where()](./firestore_.md#where_0fae4bf), [orderBy()](./firestore_.md#orderby_006d61f), [startAt()](./firestore_.md#startat_9a4477f), [startAfter()](./firestore_.md#startafter_9a4477f), [endBefore()](./firestore_.md#endbefore_9a4477f), [endAt()](./firestore_.md#endat_9a4477f), [limit()](./firestore_.md#limit_ec46c78), [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 `QueryConstraint`.\n\n**Signature:** \n\n export declare abstract class QueryConstraint \n\nProperties\n\nQueryConstraint.type\n\nThe type of this query constraint\n\n**Signature:** \n\n abstract readonly type: QueryConstraintType;"]]