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

startAfter

Creates a QueryStartAtConstraint that modifies the result set to start after the provided document (exclusive). The starting 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 startAfter<AppModelType, DbModelType extends DocumentData>(snapshot: DocumentSnapshot<AppModelType, DbModelType>): QueryStartAtConstraint;
function startAfter(...fieldValues: unknown[]): QueryStartAtConstraint;
§
startAfter<AppModelType, DbModelType extends DocumentData>(snapshot: DocumentSnapshot<AppModelType, DbModelType>): QueryStartAtConstraint
[src]

Creates a QueryStartAtConstraint that modifies the result set to start after the provided document (exclusive). The starting 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 start after.
§
startAfter(...fieldValues: unknown[]): QueryStartAtConstraint
[src]

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

§Parameters

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