Skip to content

Load every projection of a field - #1414

Merged
SimonCropp merged 1 commit into
mainfrom
projection-merge
Sep 18, 2026
Merged

SimonCropp merged 1 commit into
mainfrom
projection-merge

Conversation

@SimonCropp

Copy link
Copy Markdown
Owner

Setting a projection on a field replaced the one already there, so a field given two loaded only the last one's data. Whatever the first asked for was read from the entity as its default value.

WithProjection now adds to a field's projections rather than replacing, and all of them are loaded. A field can be built from several parts, each saying what it reads: a downstream API has a permission field with one projection for its rights check and another for its allow check, and the check whose column went unloaded silently answered for every row it should have denied.

The field keeps a list of projections, and the paths of all of them are analyzed together, once, as before. The first projection still gives the primary root, so a field with one behaves as it did. A path both projections read is added once.

Version 35.3.0.

Setting a projection on a field replaced the one already there, so a field
given two loaded only the last one's data. Whatever the first asked for was
read from the entity as its default value.

WithProjection now adds to a field's projections rather than replacing, and
all of them are loaded. A field can be built from several parts, each saying
what it reads: a downstream API has a permission field with one projection
for its rights check and another for its allow check, and the check whose
column went unloaded silently answered for every row it should have denied.

The field keeps a list of projections, and the paths of all of them are
analyzed together, once, as before. The first projection still gives the
primary root, so a field with one behaves as it did. A path both projections
read is added once.

Version 35.3.0.
@SimonCropp SimonCropp added this to the 35.3.0. milestone Sep 18, 2026
@SimonCropp
SimonCropp merged commit cf4fa2a into main Sep 18, 2026
4 of 6 checks passed
@SimonCropp
SimonCropp deleted the projection-merge branch September 18, 2026 03:54
@github-actions
github-actions Bot restored the projection-merge branch September 18, 2026 03:55
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