ARKI_CONTRACTS_E004

thrownThis error is thrown. It stops your code unless you catch it. Fix the cause below; catching it only hides the problem.

What happened

`keyset` got no keys.

Fix

Declare at least one key. Order by NOT NULL columns and end on a unique one.

Check the fix

bun run test -- src/pagination.test.ts

Run it after the fix. It passes when the fix worked.

Where it comes from

Package
@arki/contracts
Version
0.3.0 · next release candidate
Source
src/errors.ts:38