Back to Firebase Js Sdk

QueryConstraint class

docs-devsite/database.queryconstraint.md

12.12.11.7 KB
Original Source

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

QueryConstraint class

A QueryConstraint is used to narrow the set of documents returned by a Database query. QueryConstraint<!-- -->s 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<!-- -->.

<b>Signature:</b>

typescript
export declare abstract class QueryConstraint 

Properties

PropertyModifiersTypeDescription
typeQueryConstraintTypeThe type of this query constraints

QueryConstraint.type

The type of this query constraints

<b>Signature:</b>

typescript
abstract readonly type: QueryConstraintType;