voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 971 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [startAfter](./firestore_.startafter.md)
## startAfter() function
Creates a `QueryConstraint` that modifies the result set to start after the provided document (exclusive). The starting position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of the query.
<b>Signature:</b>
```typescript
export declare function startAfter(snapshot: DocumentSnapshot<unknown>): QueryConstraint;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| snapshot | [DocumentSnapshot](./firestore_.documentsnapshot.md)<!-- --><unknown> | The snapshot of the document to start after. |
<b>Returns:</b>
[QueryConstraint](./firestore_.queryconstraint.md)
A `QueryConstraint` to pass to `query()`