-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat: Add ability to explain updateNode
attributes.
#514
Conversation
6e49eda
to
e4ba64a
Compare
Looks like you are missing the selects and stuff? If you change
to:
You should get all of the other stuff |
Benchmark ResultsSummary
✅ See Better Results...
❌ See Worse Results...
✨ See Unchanged Results...
🐋 See Full Results...
|
Codecov Report
@@ Coverage Diff @@
## develop #514 +/- ##
===========================================
+ Coverage 54.32% 54.41% +0.09%
===========================================
Files 97 97
Lines 13158 13176 +18
===========================================
+ Hits 7148 7170 +22
+ Misses 5331 5327 -4
Partials 679 679
|
2e6f67d
to
630ad06
Compare
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.
Looks good, cheers for tweaking Source()!
) - Resolves sourcenetwork#483 - Add the attributes for `updateNode` that we want to see in the explainable response. Request: ``` mutation @Explain { update_user( ids: [ "bae-0a24cf29-b2c2-5861-9d00-abd6250c475d", "bae-958c9334-73cf-5695-bf06-cf06826babfa" ], data: "{\"points\": 59}" ) { _key name points } } ``` Response: ``` "explain": { "updateNode": { "data": { "points": float64(59), } "filter": nil, "ids": []string{ "bae-0a24cf29-b2c2-5861-9d00-abd6250c475d", "bae-958c9334-73cf-5695-bf06-cf06826babfa", } "selectTopNode": { "renderNode": { "selectNode": { "filter": nil, "scanNode": { "collectionID": "1", "collectionName": "user", "filter": nil, "spans": []{}, } } } } } } ```
RELEVANT ISSUE(S)
Resolves #483
DESCRIPTION
Add the attributes for
update
node that we want to see in the explainable response.Request:
Response:
HOW HAS THIS BEEN TESTED?
Locally and Integration Tests
CHECKLIST:
ENVIRONMENT / OS THIS WAS TESTED ON?
Please specify which of the following was this tested on (remove or add your own):