Skip to content

Support typed runtime OrderBy for generated keyset reads - #193

Merged
first-assist merged 1 commit into
mainfrom
platform/runtime-orderby-r6
Oct 23, 2026
Merged

first-assist merged 1 commit into
mainfrom
platform/runtime-orderby-r6

Conversation

@first-assist

@first-assist first-assist commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Generated keyset queries accept optional typed scalar orderBy, with matching forward/backward repository methods and operation-catalogue arguments. Dynamic cursors bind the entity, complete ordered fields, directions and null placement; duplicate or unsupported orders fail before SELECT. Omitting orderBy preserves configured order and cursor bytes.

Rebuilt on published main 00ee7d9fbd9c5694c17b547b79574c7ea602cbd2, retaining composite-PK keysets, current cursor authority, query-shape selection and the merged #185 subscription key filter. Missing primary-key components are appended in declaration order, including a conventional inferred id. Every configured or runtime ordering field requires current authority before reads and cursor release. Private, skipped, transformed and unsupported raw values remain unavailable on GraphQL cursor surfaces; repository policy stays independent.

Owned SQLite fixtures cover composite-key collisions, nulls, reverse windows, generated GraphQL order inputs, wrong-order rejection before SELECT and denial of implicit key components for cursor-only selections. Proposed ORM/macros version: 0.62.0. All seven local lockfile records changed only local package versions; external package and dependency records are unchanged. No schema management or ordinary write capability is added.

Source-only documentation validation (210 governed Markdown files), committed package release policy, lockfile comparison and diff checks pass. Root's exact-head relay at 18:38Z reported 16 hosted checks passed and two pending. Current-head local native qualification and full issue #190 acceptance remain pending. Keep draft; GentleCarp alone merges.

Current source: 78beb1d04e812c07d7fad2385de6eed51b5048d8 (tree b169fa5a5acc289a2467a65d8ac930766c7301b7).

Documentation impact

  • Documentation updated
  • No documentation impact

@first-assist
first-assist changed the base branch from main to platform/composite-keyset-r5 October 23, 2026 03:51
@first-assist
first-assist force-pushed the platform/composite-keyset-r5 branch from ec58025 to dbb82f2 Compare October 23, 2026 06:39
@first-assist
first-assist force-pushed the platform/runtime-orderby-r6 branch from 13af3d2 to 710e66c Compare October 23, 2026 08:08
@first-assist
first-assist changed the base branch from platform/composite-keyset-r5 to main October 23, 2026 08:09
@first-assist
first-assist force-pushed the platform/runtime-orderby-r6 branch from 710e66c to 575ae3b Compare October 23, 2026 08:58
@first-assist
first-assist force-pushed the platform/runtime-orderby-r6 branch from 575ae3b to 78beb1d Compare October 23, 2026 18:21
@first-assist
first-assist marked this pull request as ready for review October 23, 2026 19:05
@first-assist
first-assist merged commit f2be662 into main Oct 23, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant