UNPKG

voluptasmollitia

Version:
27 lines (15 loc) 971 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [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)<!-- -->&lt;unknown&gt; | The snapshot of the document to start after. | <b>Returns:</b> [QueryConstraint](./firestore_.queryconstraint.md) A `QueryConstraint` to pass to `query()`