The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > lite > startAfter

startAfter() function

Creates a QueryConstraint that modifies the result set to start after the provided fields relative to the order of the query. The order of the field values must match the order of the order by clauses of the query.

Signature:

export declare function startAfter(...fieldValues: unknown[]): QueryConstraint;

Parameters

Parameter Type Description
fieldValues unknown[] The field values to start this query after, in order of the query's order by.

Returns:

QueryConstraint

A QueryConstraint to pass to query()