Skip to content

Project derived navigations under nested fragments, and reject skip and take without an orderBy - #1404

Merged
SimonCropp merged 1 commit into
mainfrom
nested-fragments-and-order-guard
Sep 10, 2026
Merged

Project derived navigations under nested fragments, and reject skip and take without an orderBy#1404
SimonCropp merged 1 commit into
mainfrom
nested-fragments-and-order-guard

Conversation

@SimonCropp

@SimonCropp SimonCropp commented Sep 10, 2026

Copy link
Copy Markdown
Owner

A fragment on a derived type below a navigation lost its navigations. The derived navigation scan ran for the root selection only, so below a navigation the field fell through to the scalar path and was dropped; the query returned null for it with no join. The scan now runs for every nested selection, and the scalar entry the selection walk had already made for the field is removed so the derived member init does not bind it twice.

skip or take without an orderBy added an error and then ran the query anyway, so the response carried nondeterministic rows beside the error. The guards now throw.

…nd take without an orderBy

A fragment on a derived type below a navigation lost its navigations. The derived navigation scan ran for the root selection only, so below a navigation the field fell through to the scalar path and was dropped; the query returned null for it with no join. The scan now runs for every nested selection, and the scalar entry the selection walk had already made for the field is removed so the derived member init does not bind it twice.

skip or take without an orderBy added an error and then ran the query anyway, so the response carried nondeterministic rows beside the error. The guards now throw.
@SimonCropp SimonCropp added this to the 35.0.0 milestone Sep 10, 2026
@SimonCropp SimonCropp changed the title Project derived navigations under nested fragments, and reject skip a… Project derived navigations under nested fragments, and reject skip and take without an orderBy Sep 10, 2026
@SimonCropp
SimonCropp merged commit 2cf8b46 into main Sep 10, 2026
6 of 8 checks passed
@SimonCropp
SimonCropp deleted the nested-fragments-and-order-guard branch September 10, 2026 10:11
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