Skip to content

MemoryKeyset

Defined in: filters/memory.ts:755

The keyset helper returned by createMemoryKeyset.

Type Parameter Default type
Row any
Property Type Description Defined in
compare (direction?) => RowComparator<Row> The row comparator for a fetch direction ("backward" is the exact reverse). filters/memory.ts:759
fromItem (row) => Record<string, unknown> The cursor data for a row ({ key: value } for every key, a missing value as null). filters/memory.ts:766
keys () => string[] Logical cursor keys, in sort order. filters/memory.ts:757
where (cursor, direction?) => | FilterPredicate<Row> | undefined The seek predicate after (or before) a decoded cursor; undefined for a null cursor. filters/memory.ts:761