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

endAt

Creates a QueryEndAtConstraint that modifies the result set to end at the provided document (inclusive). 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 endAt<AppModelType, DbModelType extends DocumentData>(snapshot: DocumentSnapshot<AppModelType, DbModelType>): QueryEndAtConstraint;
function endAt(...fieldValues: unknown[]): QueryEndAtConstraint;
§
endAt<AppModelType, DbModelType extends DocumentData>(snapshot: DocumentSnapshot<AppModelType, DbModelType>): QueryEndAtConstraint
[src]

Creates a QueryEndAtConstraint that modifies the result set to end at the provided document (inclusive). 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 at.

§Return Type

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

Creates a QueryEndAtConstraint that modifies the result set to end at 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 at, in order of the query's order by.

§Return Type