Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

endBefore

Creates a QueryEndAtConstraint that modifies the result set to end before the provided document (exclusive). The end position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of the query.

function endBefore<AppModelType, DbModelType extends DocumentData>(snapshot: DocumentSnapshot<AppModelType, DbModelType>): QueryEndAtConstraint;
function endBefore(...fieldValues: unknown[]): QueryEndAtConstraint;
§
endBefore<AppModelType, DbModelType extends DocumentData>(snapshot: DocumentSnapshot<AppModelType, DbModelType>): QueryEndAtConstraint
[src]

Creates a QueryEndAtConstraint that modifies the result set to end before the provided document (exclusive). The end position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of the query.

§Type Parameters

§
AppModelType
[src]
§
DbModelType extends DocumentData
[src]

§Parameters

§
snapshot: DocumentSnapshot<AppModelType, DbModelType>
[src]
  • The snapshot of the document to end before.

§Return Type

§
endBefore(...fieldValues: unknown[]): QueryEndAtConstraint
[src]

Creates a QueryEndAtConstraint 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.

§Parameters

§
...fieldValues: unknown[] optional
[src]
  • The field values to end this query before, in order of the query's order by.

§Return Type