Home > @firebase/firestore > / > startAfter
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.
Signature:
export declare function startAfter(snapshot: DocumentSnapshot<unknown>): QueryConstraint;
Parameters
| Parameter | Type | Description |
|---|---|---|
| snapshot | DocumentSnapshot<unknown> | The snapshot of the document to start after. |
Returns:
A QueryConstraint to pass to query()