Skip to content

[Fusion] Cover name lookups on composite result objects with partial selection sets - #145

Merged
michaelstaib merged 2 commits into
mst/stream-v2from
mst/fusion-composite-name-lookup-check
Nov 1, 2026
Merged

michaelstaib merged 2 commits into
mst/stream-v2from
mst/fusion-composite-name-lookup-check

Conversation

@michaelstaib

Copy link
Copy Markdown
Owner

Adds tests for name lookups on composite result objects whose selection set is only partly present, because @skip/@include excluded fields or @defer deferred them. Tests cover TryGetProperty and the other name lookups on CompositeResultDocument.

The tests show the lookups already return the right property, or none, in each case. No product code changed.

Tests:

  • CompositeResultDocumentTests compiles operations with conditional and deferred selections and looks up every field by name, including a name that is not in the selection set.
  • DeferTests adds gateway tests for a deferred group with a skipped field and for nested @defer. The merged deferred result is checked against the non-deferred result.

One thing the snapshot shows but this PR does not change: when the only field of an outer deferred group is skipped, the gateway still sends an incremental entry with empty data.

Test-only change, no benchmark run.

@michaelstaib
michaelstaib merged commit 98e7b1d into mst/stream-v2 Nov 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant