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/database > QueryConstraint

QueryConstraint class

A QueryConstraint is used to narrow the set of documents returned by a Database query. QueryConstraints are created by invoking endAt(), endBefore(), startAt(), startAfter(), limitToFirst(), limitToLast(), orderByChild(), orderByChild(), orderByKey() , orderByPriority() , orderByValue() or equalTo() 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