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 %}
# QueryStartAtConstraint class
A `QueryStartAtConstraint` is used to exclude documents from the start of a result set returned by a Firestore query. `QueryStartAtConstraint`s are created by invoking [startAt()](./firestore.md#startat_9a4477f) or [startAfter()](./firestore.md#startafter_9a4477f) and can then be passed to [query()](./firestore.md#query_9f7b0f4) to create a new query instance that also contains this `QueryStartAtConstraint`.
Signature:
```typescript
export declare class QueryStartAtConstraint extends QueryConstraint
```
Extends: [QueryConstraint](./firestore.queryconstraint.md#queryconstraint_class)
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [type](./firestore.querystartatconstraint.md#querystartatconstrainttype) | | 'startAt' \| 'startAfter' | The type of this query constraint |
## QueryStartAtConstraint.type
The type of this query constraint
Signature:
```typescript
readonly type: 'startAt' | 'startAfter';
```