Skip to content

Conversation

@lopert
Copy link
Collaborator

@lopert lopert commented Oct 20, 2025

Detects extra fields by keeping track of expectedFields (aka the ones we've visited) in a new stack, parallel to the existing valueStack. Then when leaving a node with a selection set, compare what's available in the fixture to the visited field names to find extras.

@lopert lopert force-pushed the lopert.extra-fixture-data branch from 3ad1622 to d1019c2 Compare October 20, 2025 14:57
@lopert lopert marked this pull request as ready for review October 20, 2025 15:01
Copy link
Contributor

@adampetro adampetro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this handle abstract types? I think we might need a different approach to handle the case of abstract types with selections that vary depending on which concrete type is present

@lopert lopert force-pushed the lopert.extra-fixture-data branch from d1019c2 to ec77240 Compare October 23, 2025 16:26
@lopert lopert changed the base branch from ap.visitor-experiment to main October 23, 2025 16:26
@lopert lopert marked this pull request as draft October 23, 2025 16:27
@lopert lopert force-pushed the lopert.extra-fixture-data branch from ec77240 to d771a87 Compare October 23, 2025 19:28
@lopert lopert changed the base branch from main to lopert.abstract-types October 23, 2025 19:28
@lopert lopert force-pushed the lopert.extra-fixture-data branch from d771a87 to 0a918b2 Compare October 23, 2025 20:18
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.

2 participants