Skip to content

feat: provide proper path in errors#567

Merged
stuebingerb merged 1 commit intomainfrom
feature/proper-error-path
Mar 11, 2026
Merged

feat: provide proper path in errors#567
stuebingerb merged 1 commit intomainfrom
feature/proper-error-path

Conversation

@stuebingerb
Copy link
Copy Markdown
Owner

All GraphQL errors now include a proper path in the response, pointing to the node where it occurred. In combination with partial responses (tbd) this allows clients to distinguish null values from resolvers from null values due to an error.

Resolves #452

All GraphQL errors now include a proper path in the response, pointing
to the node where it occurred. In combination with partial responses
(tbd) this allows clients to distinguish `null` values from resolvers
from `null` values due to an error.

Resolves #452
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 11, 2026

Codecov Report

❌ Patch coverage is 80.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.00%. Comparing base (97360f6) to head (5d59c53).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../schema/execution/AbstractRemoteRequestExecutor.kt 78.94% 1 Missing and 3 partials ⚠️
...main/kotlin/com/apurebase/kgraphql/GraphQLError.kt 81.81% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #567      +/-   ##
==========================================
+ Coverage   83.94%   84.00%   +0.06%     
==========================================
  Files         152      152              
  Lines        4952     4978      +26     
  Branches      855      861       +6     
==========================================
+ Hits         4157     4182      +25     
  Misses        495      495              
- Partials      300      301       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Copy Markdown

🐰 Bencher Report

Branchfeature/proper-error-path
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkThroughputBenchmark Result
operations / second (ops/s)
(Result Δ%)
Lower Boundary
operations / second (ops/s)
(Limit %)
com.apurebase.kgraphql.FunctionExecutionBenchmark.benchmarkFunctionExecution📈 view plot
🚷 view threshold
6,056,749.99 ops/s
(+2.02%)Baseline: 5,936,997.73 ops/s
5,420,671.34 ops/s
(89.50%)
com.apurebase.kgraphql.ParallelExecutionBenchmark.queryBenchmark📈 view plot
🚷 view threshold
1.30 ops/s
(+0.01%)Baseline: 1.30 ops/s
1.30 ops/s
(99.78%)
com.apurebase.kgraphql.QueryBenchmark.executionError📈 view plot
🚷 view threshold
15,173.98 ops/s
(-9.86%)Baseline: 16,833.28 ops/s
3,735.54 ops/s
(24.62%)
com.apurebase.kgraphql.QueryBenchmark.largeList📈 view plot
🚷 view threshold
4.73 ops/s
(+7.83%)Baseline: 4.39 ops/s
2.48 ops/s
(52.46%)
com.apurebase.kgraphql.QueryBenchmark.largeListWithFragment📈 view plot
🚷 view threshold
5.27 ops/s
(+4.51%)Baseline: 5.04 ops/s
3.93 ops/s
(74.55%)
com.apurebase.kgraphql.QueryBenchmark.manyChildren📈 view plot
🚷 view threshold
187.66 ops/s
(-2.28%)Baseline: 192.05 ops/s
171.14 ops/s
(91.20%)
com.apurebase.kgraphql.QueryBenchmark.manyDataChildren📈 view plot
🚷 view threshold
8.96 ops/s
(+0.12%)Baseline: 8.95 ops/s
8.87 ops/s
(98.92%)
com.apurebase.kgraphql.QueryBenchmark.manyOperations📈 view plot
🚷 view threshold
289.04 ops/s
(+0.07%)Baseline: 288.83 ops/s
245.10 ops/s
(84.80%)
com.apurebase.kgraphql.QueryBenchmark.manyOperationsWithFragment📈 view plot
🚷 view threshold
292.76 ops/s
(-2.69%)Baseline: 300.87 ops/s
272.97 ops/s
(93.24%)
com.apurebase.kgraphql.QueryBenchmark.nestedObject📈 view plot
🚷 view threshold
6,840.49 ops/s
(-12.50%)Baseline: 7,817.99 ops/s
6,597.95 ops/s
(96.45%)
com.apurebase.kgraphql.RequestCachingBenchmark.invalidRequest📈 view plot
🚷 view threshold
224,726.37 ops/s
(-1.01%)Baseline: 227,023.61 ops/s
208,963.56 ops/s
(92.99%)
com.apurebase.kgraphql.RequestCachingBenchmark.largeRequest📈 view plot
🚷 view threshold
7,068.05 ops/s
(-12.19%)Baseline: 8,049.28 ops/s
6,924.86 ops/s
(97.97%)
com.apurebase.kgraphql.RequestCachingBenchmark.smallRequest📈 view plot
🚷 view threshold
10,368.05 ops/s
(-12.47%)Baseline: 11,845.19 ops/s
9,782.62 ops/s
(94.35%)
com.apurebase.kgraphql.SimpleExecutionOverheadBenchmark.benchmark📈 view plot
🚷 view threshold
464,184.01 ops/s
(-1.52%)Baseline: 471,361.09 ops/s
454,422.14 ops/s
(97.90%)
🐰 View full continuous benchmarking report in Bencher

@stuebingerb stuebingerb merged commit a79875b into main Mar 11, 2026
10 of 11 checks passed
@stuebingerb stuebingerb deleted the feature/proper-error-path branch March 11, 2026 14:03
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.

Provide proper path in GraqhQL errors

1 participant