The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > / > QueryConstraint

QueryConstraint class

A QueryConstraint is used to narrow the set of documents returned by a Firestore query. QueryConstraints are created by invoking where(), orderBy(), startAt(), startAfter(), , endAt(), limit() or 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

Property Modifiers Type Description
type QueryConstraintType The type of this query constraints