ReadonlykeyThe primary-key column values (in key-column order), from the row the
cursor was minted against. Used by keysetPredicate as the
tiebreaker fallback when a key column is absent from orderBy.
ReadonlyorderedThe value of every ordered field (in orderBy declaration order), from
the row the cursor was minted against. Index i is the value of the
i-th entry of Object.entries(orderBy).
ReadonlysortA stable fingerprint of the resolved sort specification: each ordered field paired with its direction, in order. A cursor minted under one sort and presented under another has a different fingerprint, so the caller is refused by name rather than served a silently wrong page.
The decoded contents of a cursor minted by
encodeCursor: the values of every ordered field (inorderByorder) plus the primary-key column values (for tiebreaker lookups) plus a stable fingerprint of the sort specification. The fingerprint is what a fingerprint mismatch on decode detects.The i-th element of
orderedValuesis the value ofObject.entries(orderBy)[i]from the row the cursor was minted against. This is whatkeysetPredicateindexes to build the "row after this one" comparison — a cursor that carried only key-column values would be wrong wheneverorderBycontains non-key fields.keyValuescarries the same information but indexed by key column name rather than byorderByposition. It is used bykeysetPredicateas the tiebreaker fallback when a key column is absent fromorderBy— usingorderedValues[0]there would be wrong because the first ordered-value may belong to a non-key field.Since
0.2.0