-
Notifications
You must be signed in to change notification settings - Fork 575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
apollo-inline-trace - tracing should not fail if non-nullable field throw an error #3455
Conversation
🦋 Changeset detectedLatest commit: e5bafe9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Hello @EmrysMyrddin, Thank you in advance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the fix is ok, it can be a perf penalty, but only on error paths, so it should be acceptable !
You want to remove the tests ? Perhaps we can keep a simplified version of it ? Because it looks like an edge case we want to keep track of in case of refactoring.
Interesting, I tried to write a similar test in this test suite, but I wasn't able to reproduce the same issue. The problem seems to only occur if the Yoga is used as a gateway. 🤔 |
@kroupacz Usually we avoid dealing with real servers but use |
afc74b9
to
083eb36
Compare
Hello @EmrysMyrddin and @ardatan,
|
9ff1505
to
083eb36
Compare
The above mentioned issue is caused by incompatibility with
Is there a way to do not run this test against graphql@15? |
4b38cd3
to
5a28593
Compare
FYI @EmrysMyrddin , @ardatan
I hope you will be ok with that... 🙂 |
Hello @EmrysMyrddin, |
5a28593
to
232028e
Compare
232028e
to
e5bafe9
Compare
@@ -98,7 +98,7 @@ | |||
}, | |||
"overrides": { | |||
"graphql": "16.8.1", | |||
"@envelop/core": "5.0.1", | |||
"@envelop/core": "5.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @EmrysMyrddin @ardatan,
I had to update the version of this package here as well, because it overrides the version for all other packages in this repository as well. In my case for the @graphql-yoga/plugin-apollo-inline-trace
package.
FYI: @EmrysMyrddin @ardatan |
Description
If non-nullable field in GQL schema throw an error then the tracing plugin is not able to find correct trace node by its path and throw an error here.
See the details in test called
'FAILING TEST - nonNullableFail - simple query - tracing plugin will throw "Could not find node with path testNestedField.failing" error'
in this PR.I am not sure what is the reason why the path is missing in the "ctx.nodes", but probably the reason is that:
https://spec.graphql.org/draft/#sel-GAPHRPTCAACEzBg6S
A possible solution could be:
specificNode
will not be foundType of change
Test Environment:
@graphql-yoga/plugin-apollo-inline-trace@3.8.0
:node@20