Skip to content

6.3.1: Fix paging on the node of another connection - #579

Merged
lukemurray merged 2 commits into
mainfrom
fix/connection-in-connection-node
Oct 10, 2026
Merged

lukemurray merged 2 commits into
mainfrom
fix/connection-in-connection-node

Conversation

@lukemurray

Copy link
Copy Markdown
Collaborator

#577 was merged into the #576 branch (fix/nested-connection-paging-ef) after #576 had merged and 6.3.0 had been released, so its fix never reached main. This brings it to main as 6.3.1.

🤖 Generated with Claude Code

lukemurray and others added 2 commits October 10, 2026 15:21
{ movies(first: 2) { edges { node { actors(first: 1) { ... } } } } } with
UseConnectionPaging (or UseOffsetPaging) on the inner field failed with
"unbound variable: p_ConnectionEdge`1", in memory and with EF.

- The inner edges/items field rebuilt its collection from the grandparent
  node's NextFieldContext. For `node` that is the schema expression
  p_ConnectionEdge.Node, not the edge being selected. Field.GetExpression
  now records the context a field with extensions is bound to on the
  (per-request) CompileContext, and the edges/items extensions use it.
- The edges field (and its ConnectionEdgeExtension) is shared by every
  connection of a type, and its Select parameter was a field on the
  extension. The same connection at two levels declared it in nested
  lambdas, which EF can not rewrite ("When called from 'VisitLambda'...").
  Create it per use.

EF still needs SQL APPLY to page a nested collection inside another paged
nested collection, which SQLite does not support - the two-level case is
tested in memory with a check that no lambda shadows a parameter.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
#577 merged into the #576 branch after 6.3.0 was released, so its fix is in
6.3.1 rather than 6.3.0.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@lukemurray
lukemurray merged commit 5348f59 into main Oct 10, 2026
1 check 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