Skip to content

[GAP-10] Specify that clients should populate error path from __path__#50

Merged
magicmark merged 1 commit into
graphql:mainfrom
rebello95:rebello-error-path-population
Jun 3, 2026
Merged

[GAP-10] Specify that clients should populate error path from __path__#50
magicmark merged 1 commit into
graphql:mainfrom
rebello95:rebello-error-path-population

Conversation

@rebello95
Copy link
Copy Markdown
Contributor

Adds guidance that mock error objects should have their path field populated at runtime using the response path derived from __path__, ensuring errors correctly reflect their position in the response.

Addresses #46 (comment)

…th__`

Adds guidance that mock error objects should have their `path` field
populated at runtime using the response path derived from `__path__`,
ensuring errors correctly reflect their position in the response.
Copy link
Copy Markdown
Contributor

@magicmark magicmark left a comment

Choose a reason for hiding this comment

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

I think this is sufficient. thanks!

could spec out an algorithm here but not sure it would valuable enough to do so

@magicmark magicmark merged commit cc6e6c2 into graphql:main Jun 3, 2026
2 checks 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.

2 participants