Home > @firebase/firestore > / > endBefore
endBefore() function
Creates a QueryConstraint
that modifies the result set to end before 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 endBefore(...fieldValues: unknown[]): QueryConstraint;
Parameters
Parameter | Type | Description |
---|---|---|
fieldValues | unknown[] | The field values to end this query before, in order of the query's order by. |
Returns:
A QueryConstraint
to pass to query()