voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 911 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [lite](./firestore_lite.md) > [endBefore](./firestore_lite.endbefore_1.md)
## 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.
<b>Signature:</b>
```typescript
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. |
<b>Returns:</b>
[QueryConstraint](./firestore_lite.queryconstraint.md)
A `QueryConstraint` to pass to `query()`