A `QueryConstraint` is used to narrow the set of documents returned by a Firestore query. `QueryConstraint`s are created by invoking [where()](https://firebase.google.com/docs/reference/js/firestore#where_0fae4bf), [orderBy()](https://firebase.google.com/docs/reference/js/firestore#orderby_006d61f), [startAt()](https://firebase.google.com/docs/reference/js/firestore#startat_9a4477f), [startAfter()](https://firebase.google.com/docs/reference/js/firestore#startafter_9a4477f), [endBefore()](https://firebase.google.com/docs/reference/js/firestore#endbefore_9a4477f), [endAt()](https://firebase.google.com/docs/reference/js/firestore#endat_9a4477f), [limit()](https://firebase.google.com/docs/reference/js/firestore#limit_ec46c78), [limitToLast()](https://firebase.google.com/docs/reference/js/firestore#limittolast_ec46c78) and can then be passed to [query()](https://firebase.google.com/docs/reference/js/firestore#query_9f7b0f4) to create a new query instance that also contains this `QueryConstraint`.

**Signature:**

    export declare abstract class QueryConstraint 

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [type](https://firebase.google.com/docs/reference/js/firestore.queryconstraint#queryconstrainttype) |   | [QueryConstraintType](https://firebase.google.com/docs/reference/js/firestore#queryconstrainttype) | The type of this query constraint |

## QueryConstraint.type

The type of this query constraint

**Signature:**

    abstract readonly type: QueryConstraintType;