Calling .filter() or .delete() with a Range on a single-column BTree index throws:
SyntaxError: Cannot convert [object Object] to a BigInt
Example:
ctx.db.players.fooId.filter(
new Range({ tag: 'included', value: 1n }, { tag: 'unbounded' })
);
The type system accepts Range<T> here (via IndexScanRangeBounds), but the runtime always serializes the argument as a point value. Multi-column indexes handle Range correctly — single-column indexes don't.